diff --git a/src/ChangeLog b/src/ChangeLog
index 853ff1dc..0e0fad64 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-01  Giuseppe Scrivano  <gscrivan@redhat.com>
+
+	* http.c (gethttp): Do not check for "Connection: close" header
+	only when the Content-Length is specified.
+
 2014-10-31  Tim Ruehsen  <tim.ruehsen@gmx.de>
 
 	* openssl.c: make _get_rfc2253_formatted() static
diff --git a/src/http.c b/src/http.c
index 844f8004..cded2dee 100644
--- a/src/http.c
+++ b/src/http.c
@@ -2287,7 +2287,7 @@ read_header:
     }
 
   /* Check for keep-alive related responses. */
-  if (!inhibit_keep_alive && contlen != -1)
+  if (!inhibit_keep_alive)
     {
       if (resp_header_copy (resp, "Connection", hdrval, sizeof (hdrval)))
         {