Mercurial > hg > nginx-vendor-0-7
comparison src/http/modules/ngx_http_range_filter.c @ 48:6cfc63e68377 NGINX_0_1_24
nginx 0.1.24
*) Feature: the ngx_http_ssi_filter_module supports the QUERY_STRING
and DOCUMENT_URI variables.
*) Bugfix: the ngx_http_autoindex_module may some times return the 404
response for existent directory, if this directory was used in
"alias" directive.
*) Bugfix: the ngx_http_ssi_filter_module ran incorrectly for large
responses.
*) Bugfix: the lack of the "Referer" header line was always accounted
as valid referrer.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 04 Mar 2005 00:00:00 +0300 |
parents | 4989c3d25945 |
children |
comparison
equal
deleted
inserted
replaced
47:4ae32548452c | 48:6cfc63e68377 |
---|---|
71 NGX_MODULE, | 71 NGX_MODULE, |
72 &ngx_http_range_header_filter_module_ctx, /* module context */ | 72 &ngx_http_range_header_filter_module_ctx, /* module context */ |
73 NULL, /* module directives */ | 73 NULL, /* module directives */ |
74 NGX_HTTP_MODULE, /* module type */ | 74 NGX_HTTP_MODULE, /* module type */ |
75 ngx_http_range_header_filter_init, /* init module */ | 75 ngx_http_range_header_filter_init, /* init module */ |
76 NULL /* init child */ | 76 NULL /* init process */ |
77 }; | 77 }; |
78 | 78 |
79 | 79 |
80 static ngx_http_module_t ngx_http_range_body_filter_module_ctx = { | 80 static ngx_http_module_t ngx_http_range_body_filter_module_ctx = { |
81 NULL, /* pre conf */ | 81 NULL, /* pre conf */ |
95 NGX_MODULE, | 95 NGX_MODULE, |
96 &ngx_http_range_body_filter_module_ctx, /* module context */ | 96 &ngx_http_range_body_filter_module_ctx, /* module context */ |
97 NULL, /* module directives */ | 97 NULL, /* module directives */ |
98 NGX_HTTP_MODULE, /* module type */ | 98 NGX_HTTP_MODULE, /* module type */ |
99 ngx_http_range_body_filter_init, /* init module */ | 99 ngx_http_range_body_filter_init, /* init module */ |
100 NULL /* init child */ | 100 NULL /* init process */ |
101 }; | 101 }; |
102 | 102 |
103 | 103 |
104 static ngx_http_output_header_filter_pt ngx_http_next_header_filter; | 104 static ngx_http_output_header_filter_pt ngx_http_next_header_filter; |
105 static ngx_http_output_body_filter_pt ngx_http_next_body_filter; | 105 static ngx_http_output_body_filter_pt ngx_http_next_body_filter; |
142 r->headers_out.accept_ranges->value.data = (u_char *) "bytes"; | 142 r->headers_out.accept_ranges->value.data = (u_char *) "bytes"; |
143 | 143 |
144 return ngx_http_next_header_filter(r); | 144 return ngx_http_next_header_filter(r); |
145 } | 145 } |
146 | 146 |
147 if (ngx_array_init(&r->headers_out.ranges, r->pool, 5, | 147 if (ngx_array_init(&r->headers_out.ranges, r->pool, 2, |
148 sizeof(ngx_http_range_t)) == NGX_ERROR) | 148 sizeof(ngx_http_range_t)) == NGX_ERROR) |
149 { | 149 { |
150 return NGX_ERROR; | 150 return NGX_ERROR; |
151 } | 151 } |
152 | 152 |