};
-static ngx_http_output_body_filter_pt ngx_http_next_filter;
+static ngx_http_output_body_filter_pt ngx_http_next_body_filter;
static ngx_int_t
ctx->bufs = conf->bufs;
ctx->tag = (ngx_buf_tag_t) &ngx_http_copy_filter_module;
- ctx->output_filter = (ngx_output_chain_filter_pt) ngx_http_next_filter;
+ ctx->output_filter = (ngx_output_chain_filter_pt)
+ ngx_http_next_body_filter;
ctx->filter_ctx = r;
#if (NGX_HAVE_FILE_AIO)
static ngx_int_t
ngx_http_copy_filter_init(ngx_conf_t *cf)
{
- ngx_http_next_filter = ngx_http_top_body_filter;
+ ngx_http_next_body_filter = ngx_http_top_body_filter;
ngx_http_top_body_filter = ngx_http_copy_filter;
return NGX_OK;
};
-static ngx_http_output_body_filter_pt ngx_http_next_filter;
+static ngx_http_output_body_filter_pt ngx_http_next_body_filter;
static ngx_int_t
if (r->postponed == NULL) {
if (in || c->buffered) {
- return ngx_http_next_filter(r->main, in);
+ return ngx_http_next_body_filter(r->main, in);
}
return NGX_OK;
"http postpone filter output \"%V?%V\"",
&r->uri, &r->args);
- if (ngx_http_next_filter(r->main, pr->out) == NGX_ERROR) {
+ if (ngx_http_next_body_filter(r->main, pr->out) == NGX_ERROR) {
return NGX_ERROR;
}
}
static ngx_int_t
ngx_http_postpone_filter_init(ngx_conf_t *cf)
{
- ngx_http_next_filter = ngx_http_top_body_filter;
+ ngx_http_next_body_filter = ngx_http_top_body_filter;
ngx_http_top_body_filter = ngx_http_postpone_filter;
return NGX_OK;