$c->response->header( Status => $c->response->status );
- print $c->response->headers->as_string("\015\012");
- print "\015\012";
+ print $c->response->headers->as_string("\015\012") . "\015\012";
}
=head2 $self->prepare_connection($c)
$port = $c->request->secure ? 443 : 80;
}
+ # set the base URI
+ # base must end in a slash
+ $base_path .= '/' unless ( $base_path =~ /\/$/ );
+
my $path = $base_path . ( $ENV{PATH_INFO} || '' );
$path =~ s{^/+}{};
# sanitize the URI
$uri = $uri->canonical;
$c->request->uri($uri);
-
- # set the base URI
- # base must end in a slash
- $base_path .= '/' unless ( $base_path =~ /\/$/ );
my $base = $uri->clone;
$base->path_query($base_path);
$c->request->base($base);