moved unecessary lookup

v0.6
Tim Becker 14 years ago
parent 03970a576d
commit 9656fd73de

@ -1186,8 +1186,6 @@ size_t http_parser_execute (http_parser *parser,
state = s_header_value;
index = 0;
c = LOWER(ch);
if (ch == CR) {
CALLBACK(header_value);
header_state = h_general;
@ -1201,6 +1199,8 @@ size_t http_parser_execute (http_parser *parser,
break;
}
c = LOWER(ch);
switch (header_state) {
case h_upgrade:
parser->flags |= F_UPGRADE;
@ -1242,7 +1242,6 @@ size_t http_parser_execute (http_parser *parser,
case s_header_value:
{
c = LOWER(ch);
if (ch == CR) {
CALLBACK(header_value);
@ -1255,6 +1254,8 @@ size_t http_parser_execute (http_parser *parser,
goto header_almost_done;
}
c = LOWER(ch);
switch (header_state) {
case h_general:
break;

Loading…
Cancel
Save