Permalink
Browse files

moved unecessary lookup

  • Loading branch information...
1 parent 03970a5 commit 9656fd73de16585164bf14a67dc006aff2c7d80a @a2800276 a2800276 committed Dec 5, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 http_parser.c
View
@@ -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;

0 comments on commit 9656fd7

Please sign in to comment.