aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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