aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-02-17 13:40:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-02-17 13:40:35 +0000
commit4180ca7638889eebad02d0201062b5f8fc8e3350 (patch)
tree32097eb94c57f4d1fb3f8c9bfba8c1a92b3ea0cd /lib
parent0e73361a06fd0b458816d1121fe39e0415f9f150 (diff)
don't do the GOT_NOTHING error check if the DONE function was called with
premature set TRUE, which means it was done before the request comleted. It could then very well not have received any data.
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c4
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) {