- Support restart_delay of 0 (for use in the POE engine).
- Skip body processing if we don't have a Content-Length header.
Results in about a 9% performance increase when handling GET/HEAD requests.
+ - Add a default body to redirect responses.
5.7006 2006-11-03 14.18
- Updated manifest
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(
+ "<p>This item has moved <a href=\"$location\">here</a>.</p>"
+ );
+ }
}
# Content-Length