summaryrefslogtreecommitdiff
path: root/lib/http_chunks.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-03-14 15:44:18 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-03-14 15:44:18 +0100
commit891ef341b329ab01f27d2375157de662ec1eb9b8 (patch)
treec5f55f84863ead43d06d9a1ea868f2149ce3bc2f /lib/http_chunks.h
parent2465ee757384855dce2b1787a9636141f3199c2a (diff)
downloadcurl-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.h3
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;