Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_static_module.c @ 639:715d24327080 release-0.3.41
nginx-0.3.41-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Fri, 21 Apr 2006 12:06:44 +0000 |
parents | 858700ae46b4 |
children | 4946078f0a79 |
comparison
equal
deleted
inserted
replaced
638:76bf795b5a02 | 639:715d24327080 |
---|---|
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) { |