comparison src/http/modules/ngx_http_autoindex_module.c @ 3527:84905c7b2aa7

remove r->zero_in_uri
author Igor Sysoev <igor@sysoev.ru>
date Mon, 24 May 2010 12:35:10 +0000
parents dd1570b6f237
children 61e4af19df9f 6efec8b1ff52
comparison
equal deleted inserted replaced
3526:62a4fd1e6e2c 3527:84905c7b2aa7
158 158
159 if (r->uri.data[r->uri.len - 1] != '/') { 159 if (r->uri.data[r->uri.len - 1] != '/') {
160 return NGX_DECLINED; 160 return NGX_DECLINED;
161 } 161 }
162 162
163 if (r->zero_in_uri) {
164 return NGX_DECLINED;
165 }
166
167 if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) { 163 if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) {
168 return NGX_DECLINED; 164 return NGX_DECLINED;
169 } 165 }
170 166
171 alcf = ngx_http_get_module_loc_conf(r, ngx_http_autoindex_module); 167 alcf = ngx_http_get_module_loc_conf(r, ngx_http_autoindex_module);