You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/12/05 11:56:51 UTC

[Bug 51350] mod_deflate compresses zero length content into an invalid 20 byte body

https://bz.apache.org/bugzilla/show_bug.cgi?id=51350

--- Comment #10 from Luca Toscano <to...@gmail.com> ---
(In reply to nickdnk from comment #5)
> I am observing this on 2.4.23 still

I got in touch with nickdnk@ and he'll follow up in this bugzilla ticket as
soon as possible, but it seems that he is not able to reproduce the issue
anymore.

> Also, I am wondering why we're returning a Content-Length header at all,
> when the HTTP spec says:
> 
> "A server MUST NOT send a Content-Length header field in any response
>    with a status code of 1xx (Informational) or 204 (No Content)."

This seems to be a bug (the only remaining one to discuss). I tried to bypass
mod-proxy-fcgi with this simple Perl CGI:

#!/usr/bin/perl
print "Status: 204\n";
print "Content-length: 1000\n";
print "Content-type: text/html\n\n";
print "Hello, World.";

Response with curl --compressed and without it:

HTTP/1.1 204 No Content
Date: Mon, 05 Dec 2016 11:51:33 GMT
Server: Apache/2.5.0-dev (Unix)
Content-length: 1000
Content-Type: text/html

In this case I can get the C-L greater than zero emitted. The body is dropped
by httpd as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org