mirror of
https://github.com/nginx/nginx.git
synced 2025-06-13 06:12:44 +08:00
axe unused state
This commit is contained in:
parent
b80a7f4318
commit
a724100799
@ -18,7 +18,6 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
|
|||||||
enum {
|
enum {
|
||||||
sw_start = 0,
|
sw_start = 0,
|
||||||
sw_method,
|
sw_method,
|
||||||
sw_space_after_method,
|
|
||||||
sw_spaces_before_uri,
|
sw_spaces_before_uri,
|
||||||
sw_schema,
|
sw_schema,
|
||||||
sw_schema_slash,
|
sw_schema_slash,
|
||||||
@ -118,17 +117,6 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* single space after method */
|
|
||||||
case sw_space_after_method:
|
|
||||||
switch (ch) {
|
|
||||||
case ' ':
|
|
||||||
state = sw_spaces_before_uri;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return NGX_HTTP_PARSE_INVALID_METHOD;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* space* before URI */
|
/* space* before URI */
|
||||||
case sw_spaces_before_uri:
|
case sw_spaces_before_uri:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user