From: Ian Holsman Date: Fri, 15 Feb 2002 19:44:25 +0000 (+0000) Subject: I'm happy now X-Git-Tag: 2.0.33~243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=858f5dbadf49f78c6164a4b8b69386db26df539a;p=apache I'm happy now gzip-only-text/html environment variable present git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93433 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_deflate.c b/modules/experimental/mod_deflate.c index 8a3d3b057f..b60e740cfc 100644 --- a/modules/experimental/mod_deflate.c +++ b/modules/experimental/mod_deflate.c @@ -240,6 +240,14 @@ static apr_status_t deflate_out_filter(ap_filter_t *f, if (apr_table_get(r->subprocess_env, "no-gzip")) { return ap_pass_brigade(f->next, bb); } + /* Some browsers might have problems with content types + * other than text/html, so set gzip-only-text/html + * (with browsermatch) for them + */ + if (strncmp(r->content_type, "text/html", 9) + && apr_table_get(r->subprocess_env, "gzip-only-text/html")) { + return ap_pass_brigade(f->next, bb); + } /* if they don't have the line, then they can't play */ accepts = apr_table_get(r->headers_in, "Accept-Encoding");