summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_parse.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-10-26 17:37:18 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-10-26 17:37:18 +0000
commitbc286e0604cf29501a5fa69e51fdaa4ebaa7c9c8 (patch)
tree0b802caf0f82c401444d857cc7ed15d553437db0 /src/http/ngx_http_parse.c
parent6427b81842aea67417d64832c13fe2b0413ddc77 (diff)
downloadnginx-bc286e0604cf29501a5fa69e51fdaa4ebaa7c9c8.tar.gz
nginx-bc286e0604cf29501a5fa69e51fdaa4ebaa7c9c8.tar.bz2
merge r2976:
allow underscore in request method
Diffstat (limited to 'src/http/ngx_http_parse.c')
-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 160f96dbe..d2abaa708 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;
}