diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-13 22:20:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-13 22:20:14 +0000 |
commit | f9cde0646fe8c17e890c5b78e007f861c3aa4c50 (patch) | |
tree | a1a02eeb54e41de29224ed8713790e721097ad00 | |
parent | 195233ed5c6aa8c325424072df7ea24074e7feff (diff) |
Added a failf() error message when the chunked read returns failure
-rw-r--r-- | lib/transfer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index b65fc541e..edbff71ff 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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 */ |