Mercurial > hg > nginx-quic
comparison src/http/ngx_http_copy_filter_module.c @ 4542:586969d972b9
Local variable "ngx_http_next_filter" renamed to "ngx_http_next_body_filter"
for consistency with other modules.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 15 Mar 2012 20:08:58 +0000 |
parents | 30eff7580d0c |
children | d39a69427056 |
comparison
equal
deleted
inserted
replaced
4541:2e7ac96049b8 | 4542:586969d972b9 |
---|---|
72 NULL, /* exit master */ | 72 NULL, /* exit master */ |
73 NGX_MODULE_V1_PADDING | 73 NGX_MODULE_V1_PADDING |
74 }; | 74 }; |
75 | 75 |
76 | 76 |
77 static ngx_http_output_body_filter_pt ngx_http_next_filter; | 77 static ngx_http_output_body_filter_pt ngx_http_next_body_filter; |
78 | 78 |
79 | 79 |
80 static ngx_int_t | 80 static ngx_int_t |
81 ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in) | 81 ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in) |
82 { | 82 { |
113 | 113 |
114 ctx->pool = r->pool; | 114 ctx->pool = r->pool; |
115 ctx->bufs = conf->bufs; | 115 ctx->bufs = conf->bufs; |
116 ctx->tag = (ngx_buf_tag_t) &ngx_http_copy_filter_module; | 116 ctx->tag = (ngx_buf_tag_t) &ngx_http_copy_filter_module; |
117 | 117 |
118 ctx->output_filter = (ngx_output_chain_filter_pt) ngx_http_next_filter; | 118 ctx->output_filter = (ngx_output_chain_filter_pt) |
119 ngx_http_next_body_filter; | |
119 ctx->filter_ctx = r; | 120 ctx->filter_ctx = r; |
120 | 121 |
121 #if (NGX_HAVE_FILE_AIO) | 122 #if (NGX_HAVE_FILE_AIO) |
122 if (ngx_file_aio) { | 123 if (ngx_file_aio) { |
123 if (clcf->aio) { | 124 if (clcf->aio) { |
290 | 291 |
291 | 292 |
292 static ngx_int_t | 293 static ngx_int_t |
293 ngx_http_copy_filter_init(ngx_conf_t *cf) | 294 ngx_http_copy_filter_init(ngx_conf_t *cf) |
294 { | 295 { |
295 ngx_http_next_filter = ngx_http_top_body_filter; | 296 ngx_http_next_body_filter = ngx_http_top_body_filter; |
296 ngx_http_top_body_filter = ngx_http_copy_filter; | 297 ngx_http_top_body_filter = ngx_http_copy_filter; |
297 | 298 |
298 return NGX_OK; | 299 return NGX_OK; |
299 } | 300 } |
300 | 301 |