Mercurial > hg > nginx-quic
comparison src/http/ngx_http_parse.c @ 3250:cfc35172c7fd stable-0.7
merge r2976:
allow underscore in request method
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 Oct 2009 17:37:18 +0000 |
parents | d41c740f55ce |
children | ef8cfb09a50b |
comparison
equal
deleted
inserted
replaced
3249:1966ba1d76fd | 3250:cfc35172c7fd |
---|---|
141 | 141 |
142 if (ch == CR || ch == LF) { | 142 if (ch == CR || ch == LF) { |
143 break; | 143 break; |
144 } | 144 } |
145 | 145 |
146 if (ch < 'A' || ch > 'Z') { | 146 if ((ch < 'A' || ch > 'Z') && ch != '_') { |
147 return NGX_HTTP_PARSE_INVALID_METHOD; | 147 return NGX_HTTP_PARSE_INVALID_METHOD; |
148 } | 148 } |
149 | 149 |
150 state = sw_method; | 150 state = sw_method; |
151 break; | 151 break; |
255 | 255 |
256 state = sw_spaces_before_uri; | 256 state = sw_spaces_before_uri; |
257 break; | 257 break; |
258 } | 258 } |
259 | 259 |
260 if (ch < 'A' || ch > 'Z') { | 260 if ((ch < 'A' || ch > 'Z') && ch != '_') { |
261 return NGX_HTTP_PARSE_INVALID_METHOD; | 261 return NGX_HTTP_PARSE_INVALID_METHOD; |
262 } | 262 } |
263 | 263 |
264 break; | 264 break; |
265 | 265 |