X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=c4a2089b01e186dbf71184ea0ad19209e7428868;hb=39655cdc55288a5c295174f8f3b67bf87f35162b;hp=02af3c1154933ba2a1534a8a91f2b30f1d832023;hpb=e7ad3b811c9462cdf2596461066e370f9ea4fa95;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 02af3c1..c4a2089 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -61,7 +61,7 @@ __PACKAGE__->response_class('Catalyst::Response'); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.7006'; +our $VERSION = '5.7007'; sub import { my ( $class, @arguments ) = @_; @@ -1391,6 +1391,13 @@ sub finalize_headers { if ( my $location = $c->response->redirect ) { $c->log->debug(qq/Redirecting to "$location"/) if $c->debug; $c->response->header( Location => $location ); + + if ( !$c->response->body ) { + # Add a default body if none is already present + $c->response->body( + "

This item has moved here.

" + ); + } } # Content-Length