# HG changeset patch # User Igor Sysoev # Date 1199788550 0 # Node ID 2547ef00c722973a6ceec8f66c70dd87573dfbca # Parent bf8666beb499fee39643b642496069477e794b50 ngx_http_gzip_static_module should DECLINE request diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c --- a/src/http/modules/ngx_http_gzip_static_module.c +++ b/src/http/modules/ngx_http_gzip_static_module.c @@ -82,7 +82,7 @@ ngx_http_gzip_static_handler(ngx_http_re 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] == '/') {