Fix a problem with ISA server proxy

This commit is contained in:
Giuseppe Scrivano 2014-06-16 16:34:01 +02:00
parent 08cedb953b
commit bb025955c3
3 changed files with 11 additions and 7 deletions

2
NEWS
View File

@ -17,6 +17,8 @@ Please send GNU Wget bug reports to <bug-wget@gnu.org>.
** Introduce --no-config.
** Introduce --start-pos to allow starting downloads from a specified position.
** Fix a problem with ISA Server Proxy and keep-alive connections.
* Changes in Wget 1.15

View File

@ -1,3 +1,9 @@
2014-06-16 Giuseppe Scrivano <gscrivan@redhat.com>
* http.c (gethttp): Set "Connection: Keep-Alive" with keep-alive
connections when using a proxy too.
Reported by: Thorsten Schroeteler <Thorsten.Schroeteler@cassidian.com>.
2014-06-16 Darshit Shah <darnir@gmail.com>
* main.c (print_help, print_version): Mark as noreturn.

View File

@ -1846,13 +1846,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy,
request_set_header (req, "Connection", "Close", rel_none);
else
{
if (proxy == NULL)
request_set_header (req, "Connection", "Keep-Alive", rel_none);
else
{
request_set_header (req, "Connection", "Close", rel_none);
request_set_header (req, "Proxy-Connection", "Keep-Alive", rel_none);
}
request_set_header (req, "Connection", "Keep-Alive", rel_none);
if (proxy)
request_set_header (req, "Proxy-Connection", "Keep-Alive", rel_none);
}
if (opt.method)