Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 821:8634fcbfe075
axe unused state
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 28 Oct 2006 10:42:24 +0000 |
parents | cdbe991cbdf5 |
children | a908ba404078 |
comparison
equal
deleted
inserted
replaced
820:cdbe991cbdf5 | 821:8634fcbfe075 |
---|---|
16 { | 16 { |
17 u_char c, ch, *p, *m; | 17 u_char c, ch, *p, *m; |
18 enum { | 18 enum { |
19 sw_start = 0, | 19 sw_start = 0, |
20 sw_method, | 20 sw_method, |
21 sw_space_after_method, | |
22 sw_spaces_before_uri, | 21 sw_spaces_before_uri, |
23 sw_schema, | 22 sw_schema, |
24 sw_schema_slash, | 23 sw_schema_slash, |
25 sw_schema_slash_slash, | 24 sw_schema_slash_slash, |
26 sw_host, | 25 sw_host, |
116 return NGX_HTTP_PARSE_INVALID_METHOD; | 115 return NGX_HTTP_PARSE_INVALID_METHOD; |
117 } | 116 } |
118 | 117 |
119 break; | 118 break; |
120 | 119 |
121 /* single space after method */ | |
122 case sw_space_after_method: | |
123 switch (ch) { | |
124 case ' ': | |
125 state = sw_spaces_before_uri; | |
126 break; | |
127 default: | |
128 return NGX_HTTP_PARSE_INVALID_METHOD; | |
129 } | |
130 break; | |
131 | |
132 /* space* before URI */ | 120 /* space* before URI */ |
133 case sw_spaces_before_uri: | 121 case sw_spaces_before_uri: |
134 | 122 |
135 c = (u_char) (ch | 0x20); | 123 c = (u_char) (ch | 0x20); |
136 if (c >= 'a' && c <= 'z') { | 124 if (c >= 'a' && c <= 'z') { |