aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-16 15:45:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-16 15:45:12 +0000
commit38c47803dd0e59e3584a6ce1a5e4164dc86ddb4d (patch)
treebe4c7e12402ff068be54e1117048440c35696773 /lib
parent455663ba5ecdedd6d338272bdc93ff9670bcb702 (diff)
detect if chunked transfers are aborted
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index edbff71ff..aafebdc89 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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;