From: Ryan Bloom Date: Mon, 4 Mar 2002 05:29:04 +0000 (+0000) Subject: If we insert a protocol filter before we insert a request filter, we X-Git-Tag: 2.0.33~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b202fc0556a7503c6de76f480555b59d3f224bd3;p=thirdparty%2Fapache%2Fhttpd.git If we insert a protocol filter before we insert a request filter, we must set the r->output_filter to r->proto_output_filter. If we don't, then as soon as we insert the request filter, the protocol filter will be removed. This was causing headers to not be sent on some requests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93692 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_filter.c b/server/util_filter.c index 47275d61530..c1488e64d51 100644 --- a/server/util_filter.c +++ b/server/util_filter.c @@ -372,6 +372,9 @@ static ap_filter_t *add_any_filter_handle(ap_filter_rec_t *frec, void *ctx, } } + if (frec->ftype < AP_FTYPE_CONNECTION && (*r_filters == *c_filters)) { + *r_filters = *p_filters; + } return f; }