Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Follow redirects in POST requests.
Browse files Browse the repository at this point in the history
Our setup has a proxy that forwards requests to the real server with
a redirect
  • Loading branch information
brummett committed Nov 11, 2014
1 parent f335f84 commit ecbca4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/TestDbServer/CmdLine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ecbca4e

Please sign in to comment.