diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-12 15:20:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-12 15:20:02 +0000 |
commit | 563ad213dc6854eb5a57f390a8e1bbbecc4088e3 (patch) | |
tree | 2ee4b428be09c179a5867175ee0d2af02c74b854 /lib/http_chunks.h | |
parent | 0121d7d7317d4d6551f1d579e6ffb3df1b40a941 (diff) | |
download | curl-563ad213dc6854eb5a57f390a8e1bbbecc4088e3.tar.gz |
added an error code for illegal hex values in the chunked stream
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 6f7716e43..2b7c61692 100644 --- a/lib/http_chunks.h +++ b/lib/http_chunks.h @@ -24,7 +24,7 @@ *****************************************************************************/ /* * The longest possible hexadecimal number we support in a chunked transfer. - * Weird enoug, RFC2616 doesn't set a maximum size! Since we use strtoul() + * Weird enough, RFC2616 doesn't set a maximum size! Since we use strtoul() * to convert it, we "only" support 2^32 bytes chunk data. */ #define MAXNUM_SIZE 16 @@ -62,6 +62,7 @@ typedef enum { CHUNKE_STOP = -1, CHUNKE_OK = 0, CHUNKE_TOO_LONG_HEX = 1, + CHUNKE_ILLEGAL_HEX, CHUNKE_WRITE_ERROR, CHUNKE_STATE_ERROR, CHUNKE_LAST |