X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FTest.pm;h=fbc8adafeac9dfdb47f2ae5c1a80b385f4fe1fb5;hb=345358ea4f3fa844dcd691a424014be10a6145bd;hp=492fb31dbeab280aaa3ce6e68321916f68048195;hpb=965f3e35b1f8287990aeb8f102ebc0bc107e11e8;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Test.pm b/lib/Catalyst/Test.pm index 492fb31..fbc8ada 100644 --- a/lib/Catalyst/Test.pm +++ b/lib/Catalyst/Test.pm @@ -295,6 +295,11 @@ sub _local_request { # HTML head parsing based on LWP::UserAgent # + # This is because if you make a remote request with LWP, then the + # from the returned HTML document will be used + # to fill in $res->base, as documented in HTTP::Response. We need + # to support this in local test requests so that they work 'the same'. + # # This is not just horrible and possibly broken, but also really # doesn't belong here. Whoever wants this should be working on # getting it into Plack::Test, or make a middleware out of it, or