You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2011/12/22 18:48:18 UTC
svn commit: r1222370 - /httpd/httpd/trunk/modules/http/mod_mime.c
Author: minfrin
Date: Thu Dec 22 17:48:17 2011
New Revision: 1222370
URL: http://svn.apache.org/viewvc?rev=1222370&view=rev
Log:
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.
Modified:
httpd/httpd/trunk/modules/http/mod_mime.c
Modified: httpd/httpd/trunk/modules/http/mod_mime.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/mod_mime.c?rev=1222370&r1=1222369&r2=1222370&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/mod_mime.c (original)
+++ httpd/httpd/trunk/modules/http/mod_mime.c Thu Dec 22 17:48:17 2011
@@ -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, ';'))) {