diff options
author | franck cuny <franck@lumberjaph.net> | 2010-10-19 22:01:52 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-10-19 22:03:37 +0200 |
commit | 7c6e8153b1f257516f62fbc82635ca9aef0267f3 (patch) | |
tree | 91db075cd2d1f8d490caf3aa7d172ec27e804ed4 | |
parent | small updates on request: (diff) | |
download | net-http-spore-7c6e8153b1f257516f62fbc82635ca9aef0267f3.tar.gz |
by default, no redirect
-rw-r--r-- | lib/Net/HTTP/Spore/Role/UserAgent.pm | 1 |
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; } ); |