From fb4e1f1b6bdf5d9ae93d004a41262a08f2a06086 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 3 Jan 2014 09:36:25 -0800 Subject: [PATCH] tests: Adds random data to a post making it workable in nginx For some reason nginx fails in a post with no body. This patch adds some random data here. Other platforms should not be affected. --- tests/regression/target/00-targets.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/regression/target/00-targets.t b/tests/regression/target/00-targets.t index 2e9b2889..fac3a3b3 100644 --- a/tests/regression/target/00-targets.t +++ b/tests/regression/target/00-targets.t @@ -285,6 +285,10 @@ }, request => new HTTP::Request( POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt?arg1=val1&arg2=val2", + [ + "Content-Type" => "application/x-www-form-urlencoded", + ], + "a=b", ), }, {