[Catalyst] Bug in Catalyst::finalize_headers()

Andy Grundman andy at hybridized.org
Sun May 6 15:58:49 GMT 2007


On May 6, 2007, at 9:17 AM, Bernhard Graf wrote:

> Bernhard Graf wrote:
>
>> I fixed the code and now it works as expected, though chunked
>> transfer coding*) would be a nice feature in the absence of a
>> Content-Length header.
>
> Forget this - it is (at least should be) handled by the webserver,  
> so it
> is absolutely no problem sending the body without a Content-Length
> header.

I've checked in a simpler patch that just checks that $stat->size > 0  
before setting the Content-Length.

FYI, you can achieve your desired output streaming without using a  
forked process by just calling $c->write( ... ) with each chunk of data.



More information about the Catalyst mailing list