Bug #2119
closedmod_cgi: bad chunked transfer encoding with the mod_deflate patch
Description
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:
#!/usr/bin/perl
use CGI
print CGI::header();
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 stbuehler almost 15 years ago
- Status changed from New to Invalid
- Target version deleted (
1.4.x)
Why do you think the patch wasn't applied upstream?
Updated by geronimo almost 15 years ago
stbuehler wrote:
Why do you think the patch wasn't applied upstream?
If you are not going to make 1.5.x the main release, mod_deflate is a must have feature in 1.4.x
Updated by geronimo almost 15 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.
Updated by gstrauss over 8 years ago
- Related to Feature #1824: Adding mod_deflate to 1.4.xx added
Updated by gstrauss over 8 years ago
Also available in: Atom