]> granicus.if.org Git - apache/commitdiff
Always fun when you mess up your first commit...
authorSander Striker <striker@apache.org>
Thu, 7 Mar 2002 13:12:59 +0000 (13:12 +0000)
committerSander Striker <striker@apache.org>
Thu, 7 Mar 2002 13:12:59 +0000 (13:12 +0000)
Get the logic right this time.

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

modules/experimental/mod_deflate.c

index e3a2fb84e71c4964628a9ba4e9c779e7db690a81..c43278f0ccb78c4bcd0433b14e28f0009b8b6e47 100644 (file)
@@ -248,8 +248,8 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
          * other than text/html, so set gzip-only-text/html
          * (with browsermatch) for them
          */
-        if (r->content_type != NULL
-            && strncmp(r->content_type, "text/html", 9)
+        if ((r->content_type == NULL ||
+             strncmp(r->content_type, "text/html", 9))
             && apr_table_get(r->subprocess_env, "gzip-only-text/html")) {
             return ap_pass_brigade(f->next, bb);
         }