]> git.kaiwu.me - nginx.git/commitdiff
ngx_http_gzip_static_module should DECLINE request
authorIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jan 2008 10:35:50 +0000 (10:35 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 8 Jan 2008 10:35:50 +0000 (10:35 +0000)
src/http/modules/ngx_http_gzip_static_module.c

index 601820340528796bedafad9e3940384b4ae90956..c3736491065687e78a112e3b69c8f386973a88ec 100644 (file)
@@ -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] == '/') {