mirror of
https://github.com/nginx/nginx.git
synced 2026-06-24 19:06:48 +00:00
limit the ngx_http_index_module methods to GET, HEAD and POST
This commit is contained in:
parent
26db569df0
commit
d46aee8242
1 changed files with 4 additions and 0 deletions
|
|
@ -140,6 +140,10 @@ ngx_http_index_handler(ngx_http_request_t *r)
|
|||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD|NGX_HTTP_POST))) {
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
/* TODO: Win32 */
|
||||
if (r->zero_in_uri) {
|
||||
return NGX_DECLINED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue