From: William A. Rowe Jr Date: Sat, 25 Aug 2001 17:48:52 +0000 (+0000) Subject: Downgrade must occur before we attempt to TRACE, e.g., for clients with X-Git-Tag: 2.0.25~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdaf32fa88a72f4913384f22c8a5c3d6af212b73;p=apache 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 --- diff --git a/modules/http/http_request.c b/modules/http/http_request.c index d5de0a676f..f208936f2f 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -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