Commit 8b78265f authored by Doug MacEachern's avatar Doug MacEachern
Browse files

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
parent c2d61940
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);