From 1a44af486892a31a4639f51fc6318c829d1cf715 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 18 Jul 2001 19:52:40 +0000 Subject: [PATCH] only reset request level filters in reset_filters(), else for example TLSFilter gets wiped out, breaking any response that comes through ap_die (including the frequent '304 not modified') PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89601 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_protocol.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 784ce2c977..b3b60cc155 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1752,8 +1752,9 @@ static const char *get_canned_error_string(int status, static void reset_filters(request_rec *r) { - r->connection->output_filters = r->output_filters = NULL; - ap_add_output_filter("CORE", NULL, NULL, r->connection); + /* only reset request level filters, + * connection level filters need to remain in tact + */ r->output_filters = r->connection->output_filters; ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection); ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection); -- 2.50.1