From 858f5dbadf49f78c6164a4b8b69386db26df539a Mon Sep 17 00:00:00 2001 From: Ian Holsman Date: Fri, 15 Feb 2002 19:44:25 +0000 Subject: [PATCH] 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 --- modules/experimental/mod_deflate.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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"); -- 2.40.0