comparison src/http/modules/ngx_http_static_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 9f20a6e758c3
children 1a94a56a4e5d
comparison
equal deleted inserted replaced
3526:62a4fd1e6e2c 3527:84905c7b2aa7
64 64
65 if (r->uri.data[r->uri.len - 1] == '/') { 65 if (r->uri.data[r->uri.len - 1] == '/') {
66 return NGX_DECLINED; 66 return NGX_DECLINED;
67 } 67 }
68 68
69 if (r->zero_in_uri) {
70 return NGX_DECLINED;
71 }
72
73 log = r->connection->log; 69 log = r->connection->log;
74 70
75 /* 71 /*
76 * ngx_http_map_uri_to_path() allocates memory for terminating '\0' 72 * ngx_http_map_uri_to_path() allocates memory for terminating '\0'
77 * so we do not need to reserve memory for '/' for possible redirect 73 * so we do not need to reserve memory for '/' for possible redirect