mirror of
https://github.com/curl/curl.git
synced 2026-07-26 03:47:17 +03:00
Added a failf() error message when the chunked read returns failure
This commit is contained in:
parent
195233ed5c
commit
f9cde0646f
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue