From 2db72a4b34cc145d5bf6f2fa01aa82f1447ffc89 Mon Sep 17 00:00:00 2001 From: Sander Striker Date: Thu, 7 Mar 2002 13:12:59 +0000 Subject: [PATCH] Always fun when you mess up your first commit... 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/experimental/mod_deflate.c b/modules/experimental/mod_deflate.c index e3a2fb84e7..c43278f0cc 100644 --- a/modules/experimental/mod_deflate.c +++ b/modules/experimental/mod_deflate.c @@ -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); } -- 2.40.0