[Catalyst] [patch] Wrong Content-Length value error - Catalyst::Engine::CGI

Kazuma Shiraiwa cyberlib at gmail.com
Thu May 10 10:56:37 GMT 2007


Hi,

(Catalyst-Runtime-5.7007)
Wrong Content-Length value: 4387 at
/usr/lib/perl5/site_perl/5.8.8/Catalyst.pm line 1584

I worried because of this error.
I was using Catalyst::Engine::CGI.
(Xeon2.6GHz CentOS4.4-x86_64-smp Perl5.8.8-x86_64-linux)

in Catalyst::Engine::CGI
sub read_chunk { shift; shift; *STDIN->sysread(@_); }

I think that "*STDIN->read" is better.
(Because "sysread" has what doesn't return the expected value.)
So I wrote this patch.
Wrong Content-Length value error did not occur when this patch was applied.
Please use this patch when it is good.

--
Kazuma Shiraiwa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Catalyst_Engine_CGI.patch
Type: application/octet-stream
Size: 240 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070510/ace7=
1d42/Catalyst_Engine_CGI-0001.obj


More information about the Catalyst mailing list