Skip to content
Snippets Groups Projects
Commit 4180ca76 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 0e73361a
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment