mirror of
https://github.com/nginx/nginx.git
synced 2026-05-28 04:12:47 -04:00
ngx_http_gzip_static_module should DECLINE request
This commit is contained in:
parent
67913781fc
commit
f53c2a00f8
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
|
|||
ngx_http_gzip_static_conf_t *gzcf;
|
||||
|
||||
if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) {
|
||||
return NGX_HTTP_NOT_ALLOWED;
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
if (r->uri.data[r->uri.len - 1] == '/') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue