summaryrefslogtreecommitdiff
path: root/deps/http_parser/http_parser.h
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2010-10-13 02:45:37 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-10-13 02:47:10 -0700
commit9b1ff070e6df8560ec4ce60d78c68c96ddf206c8 (patch)
tree94d7225ad47b68c5ef2101fefb65efcd64d47d91 /deps/http_parser/http_parser.h
parent73b29d79b96e2db853ef38c59d76d136f45caeae (diff)
downloadnode-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.h7
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 **/