projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e73361
)
don't do the GOT_NOTHING error check if the DONE function was called with
author
Daniel Stenberg
<daniel@haxx.se>
Sun, 17 Feb 2008 13:40:35 +0000
(13:40 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 17 Feb 2008 13:40:35 +0000
(13:40 +0000)
premature set TRUE, which means it was done before the request comleted. It
could then very well not have received any data.
lib/http.c
patch
|
blob
|
history
diff --git
a/lib/http.c
b/lib/http.c
index
08c2ea8
..
bf71f89
100644
(file)
--- 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) {