Mercurial > hg > nginx-vendor-current
comparison src/http/modules/ngx_http_static_module.c @ 188:af37b7cb6698 NGINX_0_3_41
nginx 0.3.41
*) Feature: the -v switch.
*) Bugfix: the segmentation fault may occurred if the SSI page has
remote subrequests.
*) Bugfix: in FastCGI handling.
*) Bugfix: if the perl modules path was not set using
--with-perl_modules_path=PATH or the "perl_modules", then the
segmentation fault was occurred.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 21 Apr 2006 00:00:00 +0400 |
parents | 396dbbc06dd7 |
children | 003bd800ec2a |
comparison
equal
deleted
inserted
replaced
187:c0ed72c62dfa | 188:af37b7cb6698 |
---|---|
84 ngx_file_info_t fi; | 84 ngx_file_info_t fi; |
85 ngx_pool_cleanup_t *cln; | 85 ngx_pool_cleanup_t *cln; |
86 ngx_pool_cleanup_file_t *clnf; | 86 ngx_pool_cleanup_file_t *clnf; |
87 ngx_http_core_loc_conf_t *clcf; | 87 ngx_http_core_loc_conf_t *clcf; |
88 | 88 |
89 if (r->method != NGX_HTTP_GET && r->method != NGX_HTTP_HEAD) { | |
90 return NGX_HTTP_NOT_ALLOWED; | |
91 } | |
92 | |
89 if (r->uri.data[r->uri.len - 1] == '/') { | 93 if (r->uri.data[r->uri.len - 1] == '/') { |
90 return NGX_DECLINED; | 94 return NGX_DECLINED; |
91 } | 95 } |
92 | 96 |
93 /* TODO: Win32 */ | 97 /* TODO: Win32 */ |
94 if (r->zero_in_uri) { | 98 if (r->zero_in_uri) { |
95 return NGX_DECLINED; | 99 return NGX_DECLINED; |
96 } | |
97 | |
98 if (r->method != NGX_HTTP_GET && r->method != NGX_HTTP_HEAD) { | |
99 return NGX_HTTP_NOT_ALLOWED; | |
100 } | 100 } |
101 | 101 |
102 rc = ngx_http_discard_body(r); | 102 rc = ngx_http_discard_body(r); |
103 | 103 |
104 if (rc != NGX_OK && rc != NGX_AGAIN) { | 104 if (rc != NGX_OK && rc != NGX_AGAIN) { |