Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_index_module.c @ 955:ff762576da78
limit the ngx_http_index_module methods to GET, HEAD and POST
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 25 Dec 2006 12:37:04 +0000 |
parents | a608349951cf |
children | c4f666fc3a7e |
comparison
equal
deleted
inserted
replaced
954:f16424aa5d89 | 955:ff762576da78 |
---|---|
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 |