You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2003/05/17 00:49:04 UTC
cvs commit: httpd-2.0/modules/filters mod_deflate.c
nd 2003/05/16 15:49:04
Modified: . CHANGES
modules/filters mod_deflate.c
Log:
Check also for r->content_encoding (now we should have them all...)
for already compressed content in mod_deflate.
PR: 19913
Submitted by: Tsuyoshi SASAMOTO <na...@super.win.ne.jp>
Revision Changes Path
1.1177 +3 -0 httpd-2.0/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/httpd-2.0/CHANGES,v
retrieving revision 1.1176
retrieving revision 1.1177
diff -u -r1.1176 -r1.1177
--- CHANGES 16 May 2003 18:12:54 -0000 1.1176
+++ CHANGES 16 May 2003 22:49:03 -0000 1.1177
@@ -2,6 +2,9 @@
[Remove entries to the current 2.0 section below, when backported]
+ *) Add another check for already compressed content in mod_deflate.
+ PR 19913. [Tsuyoshi SASAMOTO <na...@super.win.ne.jp>]
+
*) Add a delete flag to htpasswd.
[Thom May]
1.34 +6 -0 httpd-2.0/modules/filters/mod_deflate.c
Index: mod_deflate.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/filters/mod_deflate.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- mod_deflate.c 11 Mar 2003 18:11:33 -0000 1.33
+++ mod_deflate.c 16 May 2003 22:49:04 -0000 1.34
@@ -340,6 +340,12 @@
encoding = apr_table_get(r->err_headers_out, "Content-Encoding");
}
+ if (r->content_encoding) {
+ encoding = encoding ? apr_pstrcat(r->pool, encoding, ",",
+ r->content_encoding, NULL)
+ : r->content_encoding;
+ }
+
if (encoding) {
const char *tmp = encoding;