aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-03-23 15:26:45 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-03-23 15:26:45 +0100
commit7fd32ce73d7e253df1e8067d45d50ef9d5290cbd (patch)
tree6ed4d90c0f120bdea5cf0792d55cfab272458e88 /lib
parent2a94293efd3896eca067c4b53ccfdf362a042db2 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c3
1 files changed, 1 insertions, 2 deletions
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