Fix a failing test.

This commit is contained in:
Martin Vierula 2022-08-20 15:24:37 -07:00
parent 9cb9309fdd
commit 159cb4e93c
No known key found for this signature in database
GPG Key ID: F2FC4E45883BCBA4

View File

@ -1353,15 +1353,14 @@
SecDebugLog $ENV{DEBUG_LOG} SecDebugLog $ENV{DEBUG_LOG}
SecDebugLogLevel 9 SecDebugLogLevel 9
SecRequestBodyAccess On SecRequestBodyAccess On
SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny,id:500134" SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny,status:400,id:500134"
SecRule MULTIPART_UNMATCHED_BOUNDARY "\@eq 1" "phase:2,deny,id:500135" SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny,status:400,id:500136"
SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny,id:500136"
), ),
match_log => { match_log => {
debug => [ qr/boundary was quoted.*No boundaries found in payload/s, 1 ], debug => [ qr/Multipart: Warning: boundary was quoted./s, 1 ],
}, },
match_response => { match_response => {
status => qr/^403$/, status => qr/^400$/,
}, },
request => new HTTP::Request( request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt", POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",