mirror of
https://github.com/nginx/nginx.git
synced 2024-12-01 03:17:17 +08:00
merge r2976:
allow underscore in request method
This commit is contained in:
parent
6427b81842
commit
bc286e0604
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user