We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65126a4 commit c69316fCopy full SHA for c69316f
src/ngx_http_modsecurity_header_filter.c
@@ -92,9 +92,11 @@ ngx_http_modsecurity_header_filter(ngx_http_request_t *r)
92
msc_process_response_headers(ctx->modsec_transaction, r->headers_out.status,
93
http_protocol);
94
ngx_http_modsecurity_pcre_malloc_done(old_pool);
95
+
96
rc = ngx_http_modsecurity_process_intervention(ctx->modsec_transaction, r);
97
if (rc > 0) {
- return rc;
98
+ r->headers_out.status = rc;
99
+ r->headers_out.status_line.len = 0;
100
}
101
102
return ngx_http_next_header_filter(r);
0 commit comments