comparison src/http/modules/ngx_http_index_module.c @ 272:29a6403156b0 NGINX_0_5_6

nginx 0.5.6 *) Change: now the ngx_http_index_module ignores all methods except the GET, HEAD, and POST methods. *) Feature: the ngx_http_limit_zone_module. *) Feature: the $binary_remote_addr variable. *) Feature: the "ssl_session_cache" directives of the ngx_http_ssl_module and ngx_imap_ssl_module. *) Feature: the DELETE method supports recursive removal. *) Bugfix: the byte-ranges were transferred incorrectly if the $r->sendfile() was used.
author Igor Sysoev <http://sysoev.ru>
date Tue, 09 Jan 2007 00:00:00 +0300
parents 644510700914
children c5c2b2883984
comparison
equal deleted inserted replaced
271:fcbee7dacf2b 272:29a6403156b0
138 138
139 if (r->uri.data[r->uri.len - 1] != '/') { 139 if (r->uri.data[r->uri.len - 1] != '/') {
140 return NGX_DECLINED; 140 return NGX_DECLINED;
141 } 141 }
142 142
143 if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD|NGX_HTTP_POST))) {
144 return NGX_DECLINED;
145 }
146
143 /* TODO: Win32 */ 147 /* TODO: Win32 */
144 if (r->zero_in_uri) { 148 if (r->zero_in_uri) {
145 return NGX_DECLINED; 149 return NGX_DECLINED;
146 } 150 }
147 151