On Feb 23, 2007, at 5:27 PM, Andy Grundman wrote:
On Feb 23, 2007, at 5:04 PM, Svilen Ivanov wrote:
But the Engine::HTTP doesn't provide the Content-Length. This can
be fixed
by adding a few lines in finalize_headers (Engine/HTTP.pm, at line
53):
if ($self->_keep_alive) {
$c->response->headers->content_length( length($c->response-
>body) );
}
Hmm, Content-Length should already be set elsewhere in the code, in
Catalyst::finalize_headers.
Actually, redirects don't have any body or content-length (see
Catalyst.pm line 1415), so according to the RFC, will cause the
browser to not reuse the connection.
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/