Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_gzip_static_module.c @ 1832:2547ef00c722
ngx_http_gzip_static_module should DECLINE request
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 08 Jan 2008 10:35:50 +0000 |
parents | 0b5b94805d26 |
children | 115e6f029fcc |
comparison
equal
deleted
inserted
replaced
1831:bf8666beb499 | 1832:2547ef00c722 |
---|---|
80 ngx_open_file_info_t of; | 80 ngx_open_file_info_t of; |
81 ngx_http_core_loc_conf_t *clcf; | 81 ngx_http_core_loc_conf_t *clcf; |
82 ngx_http_gzip_static_conf_t *gzcf; | 82 ngx_http_gzip_static_conf_t *gzcf; |
83 | 83 |
84 if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) { | 84 if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) { |
85 return NGX_HTTP_NOT_ALLOWED; | 85 return NGX_DECLINED; |
86 } | 86 } |
87 | 87 |
88 if (r->uri.data[r->uri.len - 1] == '/') { | 88 if (r->uri.data[r->uri.len - 1] == '/') { |
89 return NGX_DECLINED; | 89 return NGX_DECLINED; |
90 } | 90 } |