Commit 8937df83 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

Stop returning DECLINED from the output filter for proxy

requests.

Filters can't return that type of status.

The way to decline filter handling is to pass through the input
data unchanged and hopefully remove the output filter 
permanently.

As long as the proxy flag was set in the fixup hook, we
didn't fill in our request config and the filter will be
a no-op anyway.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@399665 13f79535-47bb-0310-9956-ffa450edef68
parent fa4c59e4
Loading
Loading
Loading
Loading
+0 −3
Changes for modules/filters/mod_charset_lite.c: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -825,9 +825,6 @@ static apr_status_t xlate_out_filter(ap_filter_t *f, apr_bucket_brigade *bb)
        }
    }

    /* catch proxy requests */
    if (f->r->proxyreq) return DECLINED;

    /* Opening the output translation (this used to be done in the fixup hook,
     * but that was too early: a subsequent type modification, e.g., by a
     * CGI script, would go unnoticed. Now we do it in the filter itself.)