1
0
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:
Giuseppe Scrivano 2011-08-18 11:46:58 +02:00
parent 186200fb6e
commit 75d04cadf5
2 changed files with 8 additions and 2 deletions

View File

@ -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>
* retr.c (fd_read_body): Ensure max is not already defined.

View File

@ -2040,8 +2040,9 @@ read_header:
}
}
resp_header_copy (resp, "Transfer-Encoding", hdrval, sizeof (hdrval));
if (0 == strcasecmp (hdrval, "chunked"))
chunked_transfer_encoding = false;
if (resp_header_copy (resp, "Transfer-Encoding", hdrval, sizeof (hdrval))
&& 0 == strcasecmp (hdrval, "chunked"))
chunked_transfer_encoding = true;
/* Handle (possibly multiple instances of) the Set-Cookie header. */