From 7fd32ce73d7e253df1e8067d45d50ef9d5290cbd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 23 Mar 2010 15:26:45 +0100 Subject: chunked-encoding with Content-Length: header problem Akos Pasztory filed debian bug report #572276 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572276 mentioning a problem with a resource that returns chunked-encoded _and_ with a Content-Length and libcurl failed to properly ignore the latter information. --- lib/http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/http.c b/lib/http.c index b6c01395a..d4b99fd58 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3338,8 +3338,7 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data, using chunked Transfer-Encoding. */ if(k->chunk) - k->size=-1; - + k->maxdownload = k->size = -1; } if(-1 != k->size) { /* We do this operation even if no_body is true, since this -- cgit v1.2.3