Commit 78f70997 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Downgrade must occur before we attempt to TRACE, e.g., for clients with
  broken chunking.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90658 13f79535-47bb-0310-9956-ffa450edef68
parent e4629c17
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -263,6 +263,10 @@ static void process_request_internal(request_rec *r)
        return;
    }

    if (r->proto_num > HTTP_VERSION(1,0) && apr_table_get(r->subprocess_env, "downgrade-1.0")) {
        r->proto_num = HTTP_VERSION(1,0);
    }

    if (!r->proxyreq) {
	/*
	 * We don't want TRACE to run through the normal handler set, we
@@ -277,10 +281,6 @@ static void process_request_internal(request_rec *r)
	}
    }

    if (r->proto_num > HTTP_VERSION(1,0) && apr_table_get(r->subprocess_env, "downgrade-1.0")) {
        r->proto_num = HTTP_VERSION(1,0);
    }

    /*
     * NB: directory_walk() clears the per_dir_config, so we don't inherit
     * from location_walk() above