mirror of
https://github.com/nodejs/http-parser.git
synced 2025-10-21 23:52:13 +08:00
Remove unused 's_headers_done' state
This commit is contained in:
@@ -198,7 +198,6 @@ enum state
|
|||||||
, s_header_almost_done
|
, s_header_almost_done
|
||||||
|
|
||||||
, s_headers_almost_done
|
, s_headers_almost_done
|
||||||
, s_headers_done
|
|
||||||
|
|
||||||
, s_chunk_size_start
|
, s_chunk_size_start
|
||||||
, s_chunk_size
|
, s_chunk_size
|
||||||
@@ -931,8 +930,8 @@ size_t parse (http_parser *parser, const char *data, size_t len, int start_state
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ch == LF) {
|
if (ch == LF) {
|
||||||
state = s_headers_done;
|
// XXX recover from this? nginx does.
|
||||||
break;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
c = LOWER(ch);
|
c = LOWER(ch);
|
||||||
|
Reference in New Issue
Block a user