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:
Felipe Zimmerle
2015-01-09 05:46:09 -08:00
parent 99a148f072
commit 8907941f49

View File

@@ -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",
], ],