From: Sander Striker Date: Thu, 7 Mar 2002 13:12:59 +0000 (+0000) Subject: Always fun when you mess up your first commit... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db72a4b34cc145d5bf6f2fa01aa82f1447ffc89;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/experimental/mod_deflate.c b/modules/experimental/mod_deflate.c index e3a2fb84e71..c43278f0ccb 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); }