Skip to content
Snippets Groups Projects
Commit 563ad213 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added an error code for illegal hex values in the chunked stream

parent 0121d7d7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment