Mercurial > hg > nginx-vendor-0-5
comparison src/http/modules/ngx_http_static_handler.c @ 38:2879cd3a40cb NGINX_0_1_19
nginx 0.1.19
*) Bugfix: now, if request contains the zero, then the 404 error is
returned for the local requests.
*) Bugfix: nginx could not be built on NetBSD 2.0.
*) Bugfix: the timeout may occur while reading of the the client
request body via SSL connections.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 16 Feb 2005 00:00:00 +0300 |
parents | da8c190bdaba |
children | 6cfc63e68377 |
comparison
equal
deleted
inserted
replaced
37:3376a7dea5d6 | 38:2879cd3a40cb |
---|---|
85 | 85 |
86 if (r->uri.data[r->uri.len - 1] == '/') { | 86 if (r->uri.data[r->uri.len - 1] == '/') { |
87 return NGX_DECLINED; | 87 return NGX_DECLINED; |
88 } | 88 } |
89 | 89 |
90 /* TODO: Win32 */ | |
91 if (r->zero_in_uri) { | |
92 return NGX_DECLINED; | |
93 } | |
94 | |
90 if (r->method != NGX_HTTP_GET && r->method != NGX_HTTP_HEAD) { | 95 if (r->method != NGX_HTTP_GET && r->method != NGX_HTTP_HEAD) { |
91 return NGX_HTTP_NOT_ALLOWED; | 96 return NGX_HTTP_NOT_ALLOWED; |
92 } | 97 } |
93 | 98 |
94 rc = ngx_http_discard_body(r); | 99 rc = ngx_http_discard_body(r); |