Skip to content

Commit

Permalink
Fix typo s_start_res_or_resp
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jul 6, 2010
1 parent 03b8eaa commit c46b3e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static const uint32_t usual[] = {
enum state
{ s_dead = 1 /* important that this is > 0 */

, s_start_res_or_resp
, s_start_req_or_res
, s_res_or_resp_H
, s_start_res
, s_res_H
Expand Down Expand Up @@ -345,7 +345,7 @@ size_t http_parser_execute (http_parser *parser,
*/
goto error;

case s_start_res_or_resp:
case s_start_req_or_res:
{
if (ch == CR || ch == LF)
break;
Expand Down Expand Up @@ -1542,7 +1542,7 @@ void
http_parser_init (http_parser *parser, enum http_parser_type t)
{
parser->type = t;
parser->state = (t == HTTP_REQUEST ? s_start_req : (t == HTTP_RESPONSE ? s_start_res : s_start_res_or_resp));
parser->state = (t == HTTP_REQUEST ? s_start_req : (t == HTTP_RESPONSE ? s_start_res : s_start_req_or_res));
parser->nread = 0;
parser->upgrade = 0;
}

0 comments on commit c46b3e3

Please sign in to comment.