chunked-encoding: provide a readable error string for chunked errors

This commit is contained in:
Daniel Stenberg
2014-03-14 15:44:18 +01:00
parent 2465ee7573
commit 891ef341b3
3 changed files with 24 additions and 2 deletions

View File

@@ -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;