X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=c4a2089b01e186dbf71184ea0ad19209e7428868;hb=39655cdc55288a5c295174f8f3b67bf87f35162b;hp=e73e2c6211d977c038a37b5c937fc6b73403372e;hpb=847e3257e923336841ed6e6769cbc12ed0409e41;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index e73e2c6..c4a2089 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -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