]> git.kaiwu.me - nginx.git/commitdiff
axe unused state
authorIgor Sysoev <igor@sysoev.ru>
Sat, 28 Oct 2006 10:42:24 +0000 (10:42 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 28 Oct 2006 10:42:24 +0000 (10:42 +0000)
src/http/ngx_http_parse.c

index ddd8d77e6907641bcbaa6ee5420c4aa226a047fc..59787712eba1b43ead11337bd3bfed8fa667a941 100644 (file)
@@ -18,7 +18,6 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
     enum {
         sw_start = 0,
         sw_method,
-        sw_space_after_method,
         sw_spaces_before_uri,
         sw_schema,
         sw_schema_slash,
@@ -118,17 +117,6 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
 
             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 */
         case sw_spaces_before_uri: