Subrequests from body filters
dakota at brokenpipe.ru
Mon Mar 25 13:40:37 UTC 2013
Thanks for this correction.
But is it ok to call next body filter in subrequest's body filter to
produce output to main request?
I mean ngx_http_next_body_filter(r->main, out).
On Mon, Mar 25, 2013 at 3:56 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> On Sun, Mar 24, 2013 at 09:12:53PM +0400, Marat Dakota wrote:
>> // We just put "bbb" to main response for each call of this body filter.
>> return ngx_http_output_filter(r->main, out);
> It is very wrong to call ngx_http_output_filter() of a main
> request from you body filter. Result is undefined. Instead, you
> should call next body filter with a modified chain.
> Maxim Dounin
> nginx-devel mailing list
> nginx-devel at nginx.org
More information about the nginx-devel