]> sjero.net Git - wget/commitdiff
Specify the connection header when keep alive connections are not used.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 9 Aug 2010 10:32:04 +0000 (12:32 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 9 Aug 2010 10:32:04 +0000 (12:32 +0200)
src/ChangeLog
src/http.c

index 0e45a521b68ac9cf6a3e4e7e838bf43bdda78937..559589f7c73bc54441559e5d46fdcbbe0c3e4668 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-09  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       * http.c (gethttp): Specify the connection header when keep alive
+       connections are not used.
+
 2010-08-06  Giuseppe Scrivano  <gscrivano@gnu.org>
 
        * css-url.c (get_uri_string): Skip empty urls.
index 6795296706a8dae6b30e3f126fef5f0e8a5fa825..7b27ae67b7439b0aa588e43a14fa7349e00617da 100644 (file)
@@ -1691,7 +1691,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy,
                         rel_value);
   }
 
-  if (!inhibit_keep_alive)
+  if (inhibit_keep_alive)
+    request_set_header (req, "Connection", "Close", rel_none);
+  else
     request_set_header (req, "Connection", "Keep-Alive", rel_none);
 
   if (opt.post_data || opt.post_file_name)