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.
_______________________________________________
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/