]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Allow mod_deflate to be more tolerant of multiple content-encodings.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 29 May 2002 05:48:57 +0000 (05:48 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 29 May 2002 05:48:57 +0000 (05:48 +0000)
commit513931860e163c09a69c85000544289cdd052f51
tree2ef47b69799077fe79c8fd31d754816e5d825b59
parent37b3fdc9d109e4e8ecf27638427e7f1489c6a801
Allow mod_deflate to be more tolerant of multiple content-encodings.

- Tighten scope of a few affected variables (accepts, token).
- Look for gzip in r->headers_out (!) - if there, we've already compressed.
  (Previously, we'd look at r->headers_in which was bogus - we're output.)
- Switch the Accept-Encoding check to be case-insensitive per RFC 2616.
- Remove commented-out code.
- If C-E wasn't present or it was just "identity," set C-E to "gzip",
  otherwise, merge "gzip" onto the C-E list.

This patch was originally submitted by Ian and cleaned up and tested by
Justin.

Submitted by: Ian Holsman
Reviewed by: Justin Erenkrantz

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95339 13f79535-47bb-0310-9956-ffa450edef68
modules/filters/mod_deflate.c