[Catalyst] Resurrected: HTTP redirect - delayed Firefox

Andy Grundman andy at hybridized.org
Fri Feb 23 22:40:29 GMT 2007


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.





More information about the Catalyst mailing list