Mercurial > hg > nginx-vendor-0-8
comparison src/http/ngx_http_parse.c @ 506:e8b686f230a8 NGINX_0_8_5
nginx 0.8.5
*) Bugfix: now nginx allows underscores in a request method.
*) Bugfix: a 500 error code was returned for invalid login/password
while HTTP Basic authentication on Windows.
*) Bugfix: ngx_http_perl_module responses did not work in subrequests.
*) Bugfix: in ngx_http_limit_req_module.
Thanks to Maxim Dounin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 13 Jul 2009 00:00:00 +0400 |
parents | 392c16f2d858 |
children | 24b676623d4f |
comparison
equal
deleted
inserted
replaced
505:1191e3250e60 | 506:e8b686f230a8 |
---|---|
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 |