From 043837734196917e56bdcfcc394599e7e2151f75 Mon Sep 17 00:00:00 2001 From: Andrei Belov Date: Wed, 8 Aug 2018 13:29:48 +0300 Subject: [PATCH] Fix tests after the following change in library: https://github.com/SpiderLabs/ModSecurity/commit/42a472adbda21e6ecc4711fd37d704cdb3d98fbb --- tests/modsecurity-proxy.t | 1 + tests/modsecurity.t | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/modsecurity-proxy.t b/tests/modsecurity-proxy.t index 9bd0102..675499c 100644 --- a/tests/modsecurity-proxy.t +++ b/tests/modsecurity-proxy.t @@ -86,6 +86,7 @@ http { modsecurity on; modsecurity_rules ' SecRuleEngine On + SecResponseBodyAccess On SecDefaultAction "phase:4,log,deny,status:403" SecRule ARGS "@streq redirect301" "id:1,phase:4,status:301,redirect:http://www.modsecurity.org" SecRule ARGS "@streq redirect302" "id:2,phase:4,status:302,redirect:http://www.modsecurity.org" diff --git a/tests/modsecurity.t b/tests/modsecurity.t index 7079447..b39e54c 100644 --- a/tests/modsecurity.t +++ b/tests/modsecurity.t @@ -97,6 +97,7 @@ http { modsecurity on; modsecurity_rules ' SecRuleEngine On + SecResponseBodyAccess On SecDefaultAction "phase:4,log,deny,status:403" SecRule ARGS "@streq redirect301" "id:1,phase:4,status:301,redirect:http://www.modsecurity.org" SecRule ARGS "@streq redirect302" "id:2,phase:4,status:302,redirect:http://www.modsecurity.org"