Hi, 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). -- Marat On Mon, Mar 25, 2013 at 3:56 PM, Maxim Dounin <mdou...@mdounin.ru> wrote: > Hello! > > 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 > http://nginx.org/en/donation.html > > _______________________________________________ > nginx-devel mailing list > nginx-devel@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx-devel _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel