mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
limit the ngx_http_index_module methods to GET, HEAD and POST
This commit is contained in:
parent
26db569df0
commit
d46aee8242
@ -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…
Reference in New Issue
Block a user