mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
Added a failf() error message when the chunked read returns failure
This commit is contained in:
parent
195233ed5c
commit
f9cde0646f
@ -571,8 +571,10 @@ Transfer(struct connectdata *c_conn)
|
||||
CHUNKcode res =
|
||||
Curl_httpchunk_read(conn, str, nread, &nread);
|
||||
|
||||
if(CHUNKE_OK < res)
|
||||
if(CHUNKE_OK < res) {
|
||||
failf(data, "Receeived problem in the chunky parser");
|
||||
return CURLE_READ_ERROR;
|
||||
}
|
||||
else if(CHUNKE_STOP == res) {
|
||||
/* we're done reading chunks! */
|
||||
keepon &= ~KEEP_READ; /* read no more */
|
||||
|
Loading…
Reference in New Issue
Block a user