]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
If we insert a protocol filter before we insert a request filter, we
authorRyan Bloom <rbb@apache.org>
Mon, 4 Mar 2002 05:29:04 +0000 (05:29 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 4 Mar 2002 05:29:04 +0000 (05:29 +0000)
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

server/util_filter.c

index 47275d615309ade4c47525efbddc4b1f8b8548ca..c1488e64d518ea2f84e96e63a0c3d5800021bd8a 100644 (file)
@@ -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;
 }