diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-03-14 15:44:18 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-03-14 15:44:18 +0100 |
commit | 891ef341b329ab01f27d2375157de662ec1eb9b8 (patch) | |
tree | c5f55f84863ead43d06d9a1ea868f2149ce3bc2f /lib/http_chunks.h | |
parent | 2465ee757384855dce2b1787a9636141f3199c2a (diff) | |
download | curl-891ef341b329ab01f27d2375157de662ec1eb9b8.tar.gz |
chunked-encoding: provide a readable error string for chunked errors
Diffstat (limited to 'lib/http_chunks.h')
-rw-r--r-- | lib/http_chunks.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http_chunks.h b/lib/http_chunks.h index fc652d51e..0489eb859 100644 --- a/lib/http_chunks.h +++ b/lib/http_chunks.h @@ -72,12 +72,13 @@ typedef enum { CHUNKE_ILLEGAL_HEX, CHUNKE_BAD_CHUNK, CHUNKE_WRITE_ERROR, - CHUNKE_STATE_ERROR, CHUNKE_BAD_ENCODING, CHUNKE_OUT_OF_MEMORY, CHUNKE_LAST } CHUNKcode; +const char *Curl_chunked_strerror(CHUNKcode code); + struct Curl_chunker { char hexbuffer[ MAXNUM_SIZE + 1]; int hexindex; |