<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello</div><div> </div><div>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</div><div>If however, modsecurity is configured, then modsecurity body filter may *once again* call the entire chain of headers filter via a call to </div><div> rc = ngx_http_next_header_filter(r); in the routine ngx_http_modsecurity_body_filter.</div><div><br></div><div>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. </div><div><br></div><div>Is this the way the design of body and header filters expected to
be?</div><div>Thanks for any answers<br></div></div></body></html>