From: Nick Kew Date: Fri, 21 Apr 2006 18:49:06 +0000 (+0000) Subject: Fix mod_deflate to work in an internal redirect X-Git-Tag: 2.2.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aeedd0f1de541db1279586c8e8c2e93101dcfff;p=thirdparty%2Fapache%2Fhttpd.git Fix mod_deflate to work in an internal redirect git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@395986 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 7ee7871642e..c53d29e2826 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.2.2 + *) mod_deflate: work correctly in an internal redirect + [Brian J. France ] + *) core: Prevent reading uninitialized memory while reading a line of protocol input. PR 39282. [Davi Arnaut ] diff --git a/STATUS b/STATUS index b8bbd1d5a27..c61dc660a7f 100644 --- a/STATUS +++ b/STATUS @@ -83,10 +83,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK: Trunk version works +1: trawick, colm, jim - *) mod_deflate: handle internal redirects correctly - http://svn.apache.org/viewcvs?rev=395079&view=rev - +1: colm, wrowe, niq - * mod_proxy: Do not release connections from connection pool twice as this can cause different threads to use the same connection at the same time. PR 38793. diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 41bdbcccc79..3e0462321f3 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -240,7 +240,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f, const char *encoding; /* only work on main request/no subrequests */ - if (!ap_is_initial_req(r)) { + if (r->main != NULL) { ap_remove_output_filter(f); return ap_pass_brigade(f->next, bb); }