mod_cgi: bad chunked transfer encoding with the mod_deflate patch
If mod_deflate support patch is applied (http://redmine.lighttpd.net/attachments/632/lighttpd-1.4.19.mod_deflate.patch) transfer chunked encoding will be broken in mod_cgi even if mod_deflate is disabled.
Steps to reproduce.
Write simple cgi script:
print "hello world";
When you try curl http://localhost/cgi-test.pl you will receive "(18) transfer closed with outstanding read data remaining" because there is no last zero size chunk in the response.
There are no problems with HTTP/1.0 because chunked transfer encoding is not used.
Updated by geronimo over 10 years ago
I have made a patch: http://redmine.lighttpd.net/attachments/1057/mod_deflate-1.4.19-fix-chunked-coding.patch
I don't like it, but it's the easiest way not to make the diff with the trunk too large.
Also available in: Atom