mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix a hang on redirects which change the transfer-encoding
This commit is contained in:
parent
186200fb6e
commit
75d04cadf5
@ -1,3 +1,8 @@
|
|||||||
|
2011-08-18 Giuseppe Scrivano <giuseppe@southpole.se>
|
||||||
|
|
||||||
|
* http.c (gethttp): Reset chunked_transfer_encoding on redirections.
|
||||||
|
Reported by: Axel Reinhold <axel@freakout.de>.
|
||||||
|
|
||||||
2011-08-13 Giuseppe Scrivano <gscrivano@gnu.org>
|
2011-08-13 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
* retr.c (fd_read_body): Ensure max is not already defined.
|
* retr.c (fd_read_body): Ensure max is not already defined.
|
||||||
|
@ -2040,8 +2040,9 @@ read_header:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resp_header_copy (resp, "Transfer-Encoding", hdrval, sizeof (hdrval));
|
chunked_transfer_encoding = false;
|
||||||
if (0 == strcasecmp (hdrval, "chunked"))
|
if (resp_header_copy (resp, "Transfer-Encoding", hdrval, sizeof (hdrval))
|
||||||
|
&& 0 == strcasecmp (hdrval, "chunked"))
|
||||||
chunked_transfer_encoding = true;
|
chunked_transfer_encoding = true;
|
||||||
|
|
||||||
/* Handle (possibly multiple instances of) the Set-Cookie header. */
|
/* Handle (possibly multiple instances of) the Set-Cookie header. */
|
||||||
|
Loading…
Reference in New Issue
Block a user