Commit d536051d authored by Graham Leggett's avatar Graham Leggett
Browse files

mod_mime: Don't arbitrarily bypass AddOutputFilter during a ProxyPass,

but then allow AddOutputFilter during a RewriteRule [P]. Make mod_mime
behave identically in both cases. PR52342.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1222370 13f79535-47bb-0310-9956-ffa450edef68
parent 1f37ebe2
Loading
Loading
Loading
Loading
+2 −2
Changes for modules/http/mod_mime.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -895,7 +895,7 @@ static int find_ct(request_rec *r)
             * setting redundant filters.    2, we insert these in the types
             * config hook, which may be too early (dunno.)
             */
            if (exinfo->input_filters && r->proxyreq == PROXYREQ_NONE) {
            if (exinfo->input_filters) {
                const char *filter, *filters = exinfo->input_filters;
                while (*filters
                    && (filter = ap_getword(r->pool, &filters, ';'))) {
@@ -905,7 +905,7 @@ static int find_ct(request_rec *r)
                    found = 1;
                }
            }
            if (exinfo->output_filters && r->proxyreq == PROXYREQ_NONE) {
            if (exinfo->output_filters) {
                const char *filter, *filters = exinfo->output_filters;
                while (*filters
                    && (filter = ap_getword(r->pool, &filters, ';'))) {