projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb29529
)
make sure we return CURLE_WRITE_ERROR if the write callback returned
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 15 Mar 2002 12:42:41 +0000
(12:42 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 15 Mar 2002 12:42:41 +0000
(12:42 +0000)
an error, even if we were decoding a chunked-encoded transfer
lib/transfer.c
patch
|
blob
|
history
diff --git
a/lib/transfer.c
b/lib/transfer.c
index b887d010ab432798677a5113378747bfd55343fb..e0dc7c91893c15bb18d2bea1a8f2b5e5be814862 100644
(file)
--- a/
lib/transfer.c
+++ b/
lib/transfer.c
@@
-693,7
+693,11
@@
CURLcode Curl_readwrite(struct connectdata *conn,
Curl_httpchunk_read(conn, k->str, nread, &nread);
if(CHUNKE_OK < res) {
- failf(data, "Receeived problem in the chunky parser");
+ if(CHUNKE_WRITE_ERROR == res) {
+ failf(data, "Failed writing data");
+ return CURLE_WRITE_ERROR;
+ }
+ failf(data, "Received problem in the chunky parser");
return CURLE_READ_ERROR;
}
else if(CHUNKE_STOP == res) {