Mercurial > hg > nginx
changeset 2975:2c0f09aa8574
allow underscore in request method
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 13 Jul 2009 09:33:34 +0000 |
parents | 63f71723cd2a |
children | 0914802433b8 |
files | src/http/ngx_http_parse.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c Mon Jul 13 09:32:49 2009 +0000 +++ b/src/http/ngx_http_parse.c Mon Jul 13 09:33:34 2009 +0000 @@ -143,7 +143,7 @@ break; } - if (ch < 'A' || ch > 'Z') { + if ((ch < 'A' || ch > 'Z') && ch != '_') { return NGX_HTTP_PARSE_INVALID_METHOD; } @@ -257,7 +257,7 @@ break; } - if (ch < 'A' || ch > 'Z') { + if ((ch < 'A' || ch > 'Z') && ch != '_') { return NGX_HTTP_PARSE_INVALID_METHOD; }