Mercurial > hg > nginx-ranges
comparison src/http/modules/ngx_http_chunked_filter_module.c @ 230:38e7b94d63ac NGINX_0_4_0
nginx 0.4.0
*) Change in internal API: the HTTP modules initialization was moved
from the init module phase to the HTTP postconfiguration phase.
*) Change: now the request body is not read beforehand for the
ngx_http_perl_module: it's required to start the reading using the
$r->has_request_body method.
*) Feature: the ngx_http_perl_module supports the DECLINED return code.
*) Feature: the ngx_http_dav_module supports the incoming "Date" header
line for the PUT method.
*) Feature: the "ssi" directive is available inside the "if" block.
*) Bugfix: a segmentation fault occurred if there was an "index"
directive with variables and the first index name was without
variables; bug appeared in 0.1.29.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 30 Aug 2006 00:00:00 +0400 |
parents | fa32d59d9a15 |
children | b246022ef454 |
comparison
equal
deleted
inserted
replaced
229:1965c8e23be7 | 230:38e7b94d63ac |
---|---|
7 #include <ngx_config.h> | 7 #include <ngx_config.h> |
8 #include <ngx_core.h> | 8 #include <ngx_core.h> |
9 #include <ngx_http.h> | 9 #include <ngx_http.h> |
10 | 10 |
11 | 11 |
12 static ngx_int_t ngx_http_chunked_filter_init(ngx_cycle_t *cycle); | 12 static ngx_int_t ngx_http_chunked_filter_init(ngx_conf_t *cf); |
13 | 13 |
14 | 14 |
15 static ngx_http_module_t ngx_http_chunked_filter_module_ctx = { | 15 static ngx_http_module_t ngx_http_chunked_filter_module_ctx = { |
16 NULL, /* preconfiguration */ | 16 NULL, /* preconfiguration */ |
17 NULL, /* postconfiguration */ | 17 ngx_http_chunked_filter_init, /* postconfiguration */ |
18 | 18 |
19 NULL, /* create main configuration */ | 19 NULL, /* create main configuration */ |
20 NULL, /* init main configuration */ | 20 NULL, /* init main configuration */ |
21 | 21 |
22 NULL, /* create server configuration */ | 22 NULL, /* create server configuration */ |
31 NGX_MODULE_V1, | 31 NGX_MODULE_V1, |
32 &ngx_http_chunked_filter_module_ctx, /* module context */ | 32 &ngx_http_chunked_filter_module_ctx, /* module context */ |
33 NULL, /* module directives */ | 33 NULL, /* module directives */ |
34 NGX_HTTP_MODULE, /* module type */ | 34 NGX_HTTP_MODULE, /* module type */ |
35 NULL, /* init master */ | 35 NULL, /* init master */ |
36 ngx_http_chunked_filter_init, /* init module */ | 36 NULL, /* init module */ |
37 NULL, /* init process */ | 37 NULL, /* init process */ |
38 NULL, /* init thread */ | 38 NULL, /* init thread */ |
39 NULL, /* exit thread */ | 39 NULL, /* exit thread */ |
40 NULL, /* exit process */ | 40 NULL, /* exit process */ |
41 NULL, /* exit master */ | 41 NULL, /* exit master */ |
181 return ngx_http_next_body_filter(r, &out); | 181 return ngx_http_next_body_filter(r, &out); |
182 } | 182 } |
183 | 183 |
184 | 184 |
185 static ngx_int_t | 185 static ngx_int_t |
186 ngx_http_chunked_filter_init(ngx_cycle_t *cycle) | 186 ngx_http_chunked_filter_init(ngx_conf_t *cf) |
187 { | 187 { |
188 ngx_http_next_header_filter = ngx_http_top_header_filter; | 188 ngx_http_next_header_filter = ngx_http_top_header_filter; |
189 ngx_http_top_header_filter = ngx_http_chunked_header_filter; | 189 ngx_http_top_header_filter = ngx_http_chunked_header_filter; |
190 | 190 |
191 ngx_http_next_body_filter = ngx_http_top_body_filter; | 191 ngx_http_next_body_filter = ngx_http_top_body_filter; |