Right now the inflate filter only checks to see if the Content-Encoding
in the headers table contains gzip. It does not check
r->content_encoding. This breaks it with mod_mime (among other things).

The fix is straightforward enough, and I've attached a patch to the bug.
I've tested it to (try to) make sure it actually fixes the problem and
doesn't break deflate output.

Example test/use case:

# All files from this location have been compressed
<Location "/zipped">
  AddEncoding gzip .html .txt
</Location>
# Automatically decompress things for clients that don't support gzip
Header add Vary Accept-Encoding
FilterDeclare gzip CONTENT_SET
FilterProvider gzip inflate req=Accept-Encoding $!gzip
FilterChain gzip

Bugzilla entry:
http://issues.apache.org/bugzilla/show_bug.cgi?id=42993
Feedback, commments, etc. welcomed :) A commit or two would be nice ;)

Cheers,
-Nikolas

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to