aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-07-13 09:33:34 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-07-13 09:33:34 +0000
commitdf4b230ede64a7e576e2cb2ccb4e817774ccfe49 (patch)
tree3f55195051b27d564f4685b3c0f1f8812064737f
parent52833f221117d0f5b91b73681bdc7ba5d7e65d03 (diff)
downloadnginx-df4b230ede64a7e576e2cb2ccb4e817774ccfe49.tar.gz
nginx-df4b230ede64a7e576e2cb2ccb4e817774ccfe49.zip
allow underscore in request method
-rw-r--r--src/http/ngx_http_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index 4aa1be8ed..5bb6bb7cf 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -143,7 +143,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
break;
}
- if (ch < 'A' || ch > 'Z') {
+ if ((ch < 'A' || ch > 'Z') && ch != '_') {
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;
}
- if (ch < 'A' || ch > 'Z') {
+ if ((ch < 'A' || ch > 'Z') && ch != '_') {
return NGX_HTTP_PARSE_INVALID_METHOD;
}