summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-10-19 22:01:52 +0200
committerfranck cuny <franck@lumberjaph.net>2010-10-19 22:03:37 +0200
commit7c6e8153b1f257516f62fbc82635ca9aef0267f3 (patch)
tree91db075cd2d1f8d490caf3aa7d172ec27e804ed4
parentsmall updates on request: (diff)
downloadnet-http-spore-7c6e8153b1f257516f62fbc82635ca9aef0267f3.tar.gz
by default, no redirect
-rw-r--r--lib/Net/HTTP/Spore/Role/UserAgent.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Net/HTTP/Spore/Role/UserAgent.pm b/lib/Net/HTTP/Spore/Role/UserAgent.pm
index 6bfaa5a..9b99ab8 100644
--- a/lib/Net/HTTP/Spore/Role/UserAgent.pm
+++ b/lib/Net/HTTP/Spore/Role/UserAgent.pm
@@ -15,6 +15,7 @@ has api_useragent => (
         my $ua = LWP::UserAgent->new();
         $ua->agent( "Net::HTTP::Spore v" . $Net::HTTP::Spore::VERSION . " (Perl)" );
         $ua->env_proxy;
+        $ua->max_redirect(0);
         return $ua;
     }
 );