From 8907941f49dbc298725c5723765164aba9fd9349 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 9 Jan 2015 05:46:09 -0800 Subject: [PATCH] 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. --- tests/regression/misc/30-fuzzyHash.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/misc/30-fuzzyHash.t b/tests/regression/misc/30-fuzzyHash.t index fcd1a899..1ef6969f 100644 --- a/tests/regression/misc/30-fuzzyHash.t +++ b/tests/regression/misc/30-fuzzyHash.t @@ -108,7 +108,7 @@ SecRule REQBODY_ERROR \"!\@eq 0\" \ status => qr/^200$/, }, 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", ],