diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index 08c2ea88f..bf71f89c2 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1832,7 +1832,9 @@ CURLcode Curl_http_done(struct connectdata *conn, if(status != CURLE_OK) return (status); - if(!conn->bits.retry && + if(!premature && /* this check is pointless is the DONE is done before the + entire operation is complete */ + !conn->bits.retry && ((http->readbytecount + data->req.headerbytecount - data->req.deductheadercount)) <= 0) { |