Skip to content

Commit

Permalink
added an error code for illegal hex values in the chunked stream
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Mar 12, 2001
1 parent 0121d7d commit 563ad21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/http_chunks.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 563ad21

Please sign in to comment.