mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 17:41:52 +03:00
nginx: fixing fuzzyHash test case for nginx
POST was happening on a file that was not allowed by nginx to receive a POST. Nginx was returning 405 instead of 200 making the test to fail. Fixed by change the URL to one that is allowed to receive POST.
This commit is contained in:
@@ -108,7 +108,7 @@ SecRule REQBODY_ERROR \"!\@eq 0\" \
|
|||||||
status => qr/^200$/,
|
status => qr/^200$/,
|
||||||
},
|
},
|
||||||
request => new HTTP::Request(
|
request => new HTTP::Request(
|
||||||
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/index.html",
|
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
|
||||||
[
|
[
|
||||||
"Content-Type" => "application/x-www-form-urlencoded",
|
"Content-Type" => "application/x-www-form-urlencoded",
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user