]> granicus.if.org Git - apache/commitdiff
only reset request level filters in reset_filters(), else for example
authorDoug MacEachern <dougm@apache.org>
Wed, 18 Jul 2001 19:52:40 +0000 (19:52 +0000)
committerDoug MacEachern <dougm@apache.org>
Wed, 18 Jul 2001 19:52:40 +0000 (19:52 +0000)
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

index 784ce2c977a3abc5ad4967d57d213e2975dd2307..b3b60cc155307d8b7bda39bae48afe371d6ae680 100644 (file)
@@ -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);