Subject: | requests_redirectable option deviates from default (expected) behaviour |
Hi,
Is there a reason that requests_redirectable has been explicitly overridden from the default
(expected) behaviour:
$self->agent->requests_redirectable( [] );
From the LWP::UserAgent doc page:
This reads or sets the object's list of request names that $ua->redirect_ok(...) will allow
redirection for. By default, this is ['GET', 'HEAD'], as per RFC 2616.
Attached is a patch against 0.17 which removes the offending line ;-).
Cheers,
Stephen
@@ -207,7 +207,6 @@
$self->_init_agent if ( !defined $self->agent );
# specific agent config
- $self->agent->requests_redirectable( [] );
$self->agent->agent(''); # for TRACE support
$self->agent->protocols_allowed( [qw( http https ftp gopher )] );