mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Specify the connection header when keep alive connections are not used.
This commit is contained in:
parent
e70602b962
commit
87ad80cacc
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user