mirror of
https://github.com/curl/curl.git
synced 2026-06-03 23:14:15 +03:00
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.
This commit is contained in:
parent
0e73361a06
commit
4180ca7638
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue