diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-01-08 10:35:50 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-01-08 10:35:50 +0000 |
commit | f53c2a00f87e6c7600e79776d3e2c16b4c3b452e (patch) | |
tree | 5aa00242cbca031a73245fbdc016578c450a03a9 /src/http/modules/ngx_http_gzip_static_module.c | |
parent | 67913781fcd0454555b084fe3162f8953c3b627b (diff) | |
download | nginx-f53c2a00f87e6c7600e79776d3e2c16b4c3b452e.tar.gz nginx-f53c2a00f87e6c7600e79776d3e2c16b4c3b452e.zip |
ngx_http_gzip_static_module should DECLINE request
Diffstat (limited to 'src/http/modules/ngx_http_gzip_static_module.c')
-rw-r--r-- | src/http/modules/ngx_http_gzip_static_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c index 601820340..c37364910 100644 --- 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_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] == '/') { |