src: faster general header value loop

make-http-max-header-size-gyp-configurable
Fedor Indutny 10 years ago
parent 263006044a
commit c6097e1d76

@ -1516,6 +1516,15 @@ size_t http_parser_execute (http_parser *parser,
switch (h_state) { switch (h_state) {
case h_general: case h_general:
for (; p != data + len; p++) {
ch = *p;
if (ch == CR || ch == LF) {
--p;
break;
}
}
if (p == data + len)
--p;
break; break;
case h_connection: case h_connection:

Loading…
Cancel
Save