allow underscore in request method

This commit is contained in:
Igor Sysoev 2009-07-13 09:33:34 +00:00
parent 52833f2211
commit df4b230ede

View File

@ -143,7 +143,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
break; break;
} }
if (ch < 'A' || ch > 'Z') { if ((ch < 'A' || ch > 'Z') && ch != '_') {
return NGX_HTTP_PARSE_INVALID_METHOD; return NGX_HTTP_PARSE_INVALID_METHOD;
} }
@ -257,7 +257,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
break; break;
} }
if (ch < 'A' || ch > 'Z') { if ((ch < 'A' || ch > 'Z') && ch != '_') {
return NGX_HTTP_PARSE_INVALID_METHOD; return NGX_HTTP_PARSE_INVALID_METHOD;
} }