Serve proper HTML for the redirect message
Andy Grundman [Mon, 26 Feb 2007 18:14:35 +0000 (18:14 +0000)]
lib/Catalyst.pm

index ab4c3f0..04d8d82 100644 (file)
@@ -1399,7 +1399,7 @@ sub finalize_headers {
         if ( !$c->response->body ) {
             # Add a default body if none is already present
             $c->response->body(
-                "<p>This item has moved <a href=\"$location\">here</a>.</p>"
+                qq{<html><body><p>This item has moved <a href="$location">here</a>.</p></body></html>}
             );
         }
     }