From ecbca4eff49ac2412356ed9b37d895993185aa16 Mon Sep 17 00:00:00 2001 From: Anthony Brummett Date: Tue, 11 Nov 2014 13:44:55 -0600 Subject: [PATCH] Follow redirects in POST requests. Our setup has a proxy that forwards requests to the real server with a redirect --- lib/TestDbServer/CmdLine.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/TestDbServer/CmdLine.pm b/lib/TestDbServer/CmdLine.pm index 65d2131..d0afb37 100644 --- a/lib/TestDbServer/CmdLine.pm +++ b/lib/TestDbServer/CmdLine.pm @@ -43,6 +43,7 @@ sub get_user_agent { $ua = LWP::UserAgent->new; $ua->agent("TestDbServer::CmdLine/0.1 "); $ua->timeout(5); + push @{ $ua->requests_redirectable }, 'POST'; } return $ua; }