]> granicus.if.org Git - apache/commitdiff
Downgrade must occur before we attempt to TRACE, e.g., for clients with
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 25 Aug 2001 17:48:52 +0000 (17:48 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 25 Aug 2001 17:48:52 +0000 (17:48 +0000)
  broken chunking.

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

modules/http/http_request.c

index d5de0a676f05b08063e5bd9654c34dccee0d89e9..f208936f2f13b324c3f8f6515bb14f3107f384c0 100644 (file)
@@ -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