diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2010-10-13 02:45:37 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-13 02:47:10 -0700 |
commit | 9b1ff070e6df8560ec4ce60d78c68c96ddf206c8 (patch) | |
tree | 94d7225ad47b68c5ef2101fefb65efcd64d47d91 /deps/http_parser/http_parser.h | |
parent | 73b29d79b96e2db853ef38c59d76d136f45caeae (diff) | |
download | node-new-9b1ff070e6df8560ec4ce60d78c68c96ddf206c8.tar.gz |
Upgrade http-parser with a fix for spaces in headers
Diffstat (limited to 'deps/http_parser/http_parser.h')
-rw-r--r-- | deps/http_parser/http_parser.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/http_parser/http_parser.h b/deps/http_parser/http_parser.h index 2e395a24e9..793089a67d 100644 --- a/deps/http_parser/http_parser.h +++ b/deps/http_parser/http_parser.h @@ -100,14 +100,13 @@ enum http_parser_type { HTTP_REQUEST, HTTP_RESPONSE, HTTP_BOTH }; struct http_parser { /** PRIVATE **/ - unsigned char type; + unsigned char type : 2; + unsigned char flags : 6; unsigned char state; unsigned char header_state; unsigned char index; - char flags; - - uint64_t nread; + uint32_t nread; int64_t content_length; /** READ-ONLY **/ |