Mercurial > hg > nginx
comparison src/http/modules/ngx_http_autoindex_module.c @ 3598:8152369f7037 stable-0.7
merge r3528:
remove r->zero_in_uri
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Jun 2010 12:27:06 +0000 |
parents | 2efa8d2fcde1 |
children |
comparison
equal
deleted
inserted
replaced
3597:0d8b8c84bab7 | 3598:8152369f7037 |
---|---|
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); |