Catalyst-Controller-Atompub
view release on metacpan or search on metacpan
inc/Test/WWW/Mechanize/Catalyst.pm view on Meta::CPAN
# TODO: this should probably create the request by cloning the original
# request and modifying it as LWP::UserAgent::request does. But for now...
# *where* do they want us to redirect to?
my $location = $response->header('Location');
# no-one *should* be returning non-absolute URLs, but if they
# are then we'd better cope with it. Let's create a new URI, using
# our request as the base.
my $uri = URI->new_abs( $location, $request->uri )->as_string;
my $referral = HTTP::Request->new( GET => $uri );
return $self->request( $referral, $arg, $size, $response );
} else {
$response->{_raw_content} = $response->content;
}
return $response;
}
sub _redirect_loop_detected {
my ( $self, $response ) = @_;
( run in 0.431 second using v1.01-cache-2.11-cpan-de7293f3b23 )