]> granicus.if.org Git - apache/commitdiff
Sub requests should never get into the http headers filter, so we remove
authorRyan Bloom <rbb@apache.org>
Fri, 3 Nov 2000 22:35:52 +0000 (22:35 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 3 Nov 2000 22:35:52 +0000 (22:35 +0000)
the check for it, and through in an ASSERT.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86829 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index e987bd2c6394758f3236d34de91c8a42cac86637..8e63125dc82b8bc355dd0367b47b37663e227c6a 100644 (file)
@@ -2328,9 +2328,9 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f, ap_bu
     apr_size_t len = 0;
     header_struct h;
 
+    AP_DEBUG_ASSERT(!r->main);
+
     if (r->assbackwards) {
-        if (!r->main)
-            ap_bsetopt(r->connection->client, BO_BYTECT, &zero);
         r->sent_bodyct = 1;
         ap_remove_output_filter(f);
         return ap_pass_brigade(f->next, b);