1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

- revert my patch (r1.155) since it produces regressions.

- add a note to STATUS that we don't forget the thing.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100086 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
André Malo
2003-05-29 15:07:12 +00:00
parent 39217e37f6
commit b2b035253f
3 changed files with 18 additions and 28 deletions

View File

@@ -400,27 +400,17 @@ static request_rec *internal_internal_redirect(const char *new_uri,
new->proto_output_filters = r->proto_output_filters;
new->proto_input_filters = r->proto_input_filters;
if (new->main) {
new->output_filters = r->output_filters;
new->input_filters = r->input_filters;
new->output_filters = new->proto_output_filters;
new->input_filters = new->proto_input_filters;
if (new->main) {
/* Add back the subrequest filter, which we lost when
* we set output_filters to include only the protocol
* output filters from the original request.
*
* XXX: This shouldn't be neccessary any longer, because the filter
* is still in place -- isn't it?
*/
ap_add_output_filter_handle(ap_subreq_core_filter_handle,
NULL, new, new->connection);
}
else {
/* In subrequests we _must_ point to the complete upper request's
* filter chain, so skip the filters _only_ within the main request.
*/
new->output_filters = new->proto_output_filters;
new->input_filters = new->proto_input_filters;
}
update_r_in_filters(new->input_filters, r, new);
update_r_in_filters(new->output_filters, r, new);
@@ -471,19 +461,10 @@ AP_DECLARE(void) ap_internal_fast_redirect(request_rec *rr, request_rec *r)
r->subprocess_env = apr_table_overlay(r->pool, rr->subprocess_env,
r->subprocess_env);
/* copy the filters _only_ within the main request. In subrequests
* we _must_ point to the upper requests' filter chain, so do not
* touch 'em!
*/
if (!r->main) {
r->output_filters = rr->output_filters;
r->input_filters = rr->input_filters;
}
r->output_filters = rr->output_filters;
r->input_filters = rr->input_filters;
if (r->main) {
/* XXX: This shouldn't be neccessary any longer, because the filter
* is still in place -- isn't it?
*/
ap_add_output_filter_handle(ap_subreq_core_filter_handle,
NULL, r, r->connection);
}