Mercurial > hg > nginx
comparison src/http/modules/ngx_http_random_index_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 | a56cccd588e6 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
3526:62a4fd1e6e2c | 3527:84905c7b2aa7 |
---|---|
84 | 84 |
85 if (r->uri.data[r->uri.len - 1] != '/') { | 85 if (r->uri.data[r->uri.len - 1] != '/') { |
86 return NGX_DECLINED; | 86 return NGX_DECLINED; |
87 } | 87 } |
88 | 88 |
89 if (r->zero_in_uri) { | |
90 return NGX_DECLINED; | |
91 } | |
92 | |
93 if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD|NGX_HTTP_POST))) { | 89 if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD|NGX_HTTP_POST))) { |
94 return NGX_DECLINED; | 90 return NGX_DECLINED; |
95 } | 91 } |
96 | 92 |
97 rlcf = ngx_http_get_module_loc_conf(r, ngx_http_random_index_module); | 93 rlcf = ngx_http_get_module_loc_conf(r, ngx_http_random_index_module); |