Skip to content

Commit 254a608

Browse files
author
Felipe Zimmerle
committed
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.
1 parent a295e8a commit 254a608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/regression/misc/30-fuzzyHash.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ SecRule REQBODY_ERROR \"!\@eq 0\" \
108108
status => qr/^200$/,
109109
},
110110
request => new HTTP::Request(
111-
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/index.html",
111+
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
112112
[
113113
"Content-Type" => "application/x-www-form-urlencoded",
114114
],

0 commit comments

Comments
 (0)