Commit 5f758fbd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make sure we return CURLE_WRITE_ERROR if the write callback returned

an error, even if we were decoding a chunked-encoded transfer
parent fb29529a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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) {