X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=b7026cd8fa9f44bf4adb5ba593d50cf4cbd1530f;hp=247ba6748096f56153d4922a23a4314552529bb0;hb=75d04cadf54aa666672295a2920ce83852741884;hpb=186200fb6eb5f1c78ef21349fc34f05e6c48ee21 diff --git a/src/http.c b/src/http.c index 247ba674..b7026cd8 100644 --- a/src/http.c +++ b/src/http.c @@ -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. */