mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 12:50:13 +08:00
Fix a problem with ISA server proxy
This commit is contained in:
parent
08cedb953b
commit
bb025955c3
2
NEWS
2
NEWS
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
10
src/http.c
10
src/http.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user