From 891ef341b329ab01f27d2375157de662ec1eb9b8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 14 Mar 2014 15:44:18 +0100 Subject: chunked-encoding: provide a readable error string for chunked errors --- lib/http_chunks.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/http_chunks.h') 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; -- cgit v1.2.3