make sure we return CURLE_WRITE_ERROR if the write callback returned

an error, even if we were decoding a chunked-encoded transfer
This commit is contained in:
Daniel Stenberg 2002-03-15 12:42:41 +00:00
parent fb29529a52
commit 5f758fbd11

View File

@ -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) {