aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/transfer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index b887d010a..e0dc7c918 100644
--- 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) {