X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FTest.pm;h=492fb31dbeab280aaa3ce6e68321916f68048195;hb=ddcd2fc4728111853841078cc5d9a117b993ea96;hp=06c821fcc15e6d70fe9acc69ec5dd561cbf65a74;hpb=f8db2ed7cc69853222729adfdbb48e5e4bea9bd2;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Test.pm b/lib/Catalyst/Test.pm index 06c821f..492fb31 100644 --- a/lib/Catalyst/Test.pm +++ b/lib/Catalyst/Test.pm @@ -311,6 +311,10 @@ sub _local_request { for my $f ( $h->header_field_names ) { $resp->init_header( $f, [ $h->header($f) ] ); } + # Another horrible hack to make the response headers have a + # 'status' field. This is for back-compat, but you should + # call $resp->code instead! + $resp->init_header('status', [ $resp->code ]); }, }, @_); }