Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite20c800

Browse files
author
Felipe Zimmerle
committed
nginx: fix missing headers while SecResponseBodyAccess was On
The problem was caused by the fact that ModSecutiry was telling Nginx thatheaders had been sent when, in fact, had not. This modification was added inthe past, along with others, in the following commit:fd2c30fThis patch, just removes the "r->header_sent = 1". After that modificationthe following regression tests started to work again:from: action/00-disruptive-actions.t 3) action - pass in phase:3 4) action - pass in phase:4 11) action - deny in phase:3 12) action - deny in phase:4 19) action - redirect in phase:3 (get) 20) action - redirect in phase:4 (get) 23) action - proxy in phase:3 (get) 24) action - proxy in phase:4 (get)from: config/10-response-directives.t 2) config - SecResponseBodyAccess On 6) config - SecResponseBodyLimit (greater) 7) config - SecResponseBodyLimitAction Reject
1 parent445783d commite20c800

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎nginx/modsecurity/ngx_http_modsecurity.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,9 +1139,6 @@ ngx_http_modsecurity_header_filter(ngx_http_request_t *r) {
11391139

11401140
/* SecResponseBodyAccess on, process rules in body filter */
11411141

1142-
/* pretend we are ngx_http_header_filter */
1143-
r->header_sent=1;
1144-
11451142
r->filter_need_in_memory=1;
11461143
returnNGX_OK;
11471144
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp