mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
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:
parent
fb29529a52
commit
5f758fbd11
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user