Welcome! Log In Create A New Profile

Advanced

Is it ok to call header filters twice for the same response

Rv Rv
June 29, 2014 12:58AM
Hello
 
When we configure nginx without modsecurity body filter, then the response is processed in two stages. First the headers are processed followed by the body filters
If however, modsecurity is configured, then modsecurity body filter may *once again* call the entire chain of headers filter via a call to
    rc = ngx_http_next_header_filter(r); in  the routine ngx_http_modsecurity_body_filter.

This means that any header filter that is configured will end up processing the same response header twice. This means that header filter should be stateful in that it should know if it is invoked multiple times and allocate ctx only once.

Is this the way the design of body and header filters expected to be?
Thanks for any answers
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Is it ok to call header filters twice for the same response

Rv Rv June 29, 2014 12:58AM

Re: Is it ok to call header filters twice for the same response

Maxim Dounin June 30, 2014 07:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready