mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
detect if chunked transfers are aborted
This commit is contained in:
parent
455663ba5e
commit
38c47803dd
@ -689,6 +689,11 @@ Transfer(struct connectdata *c_conn)
|
|||||||
contentlength-bytecount);
|
contentlength-bytecount);
|
||||||
return CURLE_PARTIAL_FILE;
|
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))
|
if(Curl_pgrsUpdate(data))
|
||||||
return CURLE_ABORTED_BY_CALLBACK;
|
return CURLE_ABORTED_BY_CALLBACK;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user