Subrequests from body filters

Maxim Dounin mdounin at
Mon Mar 25 11:56:13 UTC 2013


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

More information about the nginx-devel mailing list