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

detect if chunked transfers are aborted

parent 455663ba
No related branches found
No related tags found
No related merge requests found
......@@ -689,6 +689,11 @@ Transfer(struct connectdata *c_conn)
contentlength-bytecount);
return CURLE_PARTIAL_FILE;
}
else if(conn->bits.chunk && conn->proto.http->chunk.datasize) {
failf(data, "transfer closed with at least %d bytes remaining",
conn->proto.http->chunk.datasize);
return CURLE_PARTIAL_FILE;
}
if(Curl_pgrsUpdate(data))
return CURLE_ABORTED_BY_CALLBACK;
......
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