]> granicus.if.org Git - apache/commitdiff
Fix bug in mod_deflate that unconditionally sent deflate'd output even when
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sat, 29 May 2004 03:34:17 +0000 (03:34 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sat, 29 May 2004 03:34:17 +0000 (03:34 +0000)
Accept-Encoding is not present.

Reported by Roy Fielding for http://cvs.apache.org/viewcvs/ with Safari.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103803 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/filters/mod_deflate.c

diff --git a/CHANGES b/CHANGES
index 1e62eb5090211b537ba85d8035ab1a5e4b050475..d5f81b8d37f82b51d06a858f7daad926228c6c3d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@ Changes with Apache 2.1.0-dev
 
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) Fix bug in mod_deflate that unconditionally sent deflate'd output
+     even when Accept-Encoding is not present.  [Justin Erenkrantz]
+
   *) Pass environment variables through to piped loggers, resolving
      a regression since 1.3.  [Ken Coar, Jeff Trawick]
 
index 2dd1522e1e98a0586b008878dac7854f61fc519e..07464fe6d5bc4f7ba06579c0b838ceab875ea2b7 100644 (file)
@@ -340,7 +340,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
         /* force-gzip will just force it out regardless if the browser
          * can actually do anything with it.
          */
-        if (apr_table_get(r->subprocess_env, "force-gzip") != NULL) {
+        if (!apr_table_get(r->subprocess_env, "force-gzip")) {
             const char *accepts;
             /* if they don't have the line, then they can't play */
             accepts = apr_table_get(r->headers_in, "Accept-Encoding");