Commit a1170ae4 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

don't add BYTERANGE, CONTENT_LENGTH, or HTTP_HEADER for

subrequests; they only make sense for main requests and
internal redirects


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89283 13f79535-47bb-0310-9956-ffa450edef68
parent fb449146
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -297,10 +297,12 @@ static int ap_process_http_connection(conn_rec *c)

static void ap_http_insert_filter(request_rec *r)
{
    if (!r->main) {
        ap_add_output_filter("BYTERANGE", NULL, r, r->connection);
        ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
        ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
    }
}

static void register_hooks(apr_pool_t *p)
{