]> granicus.if.org Git - apache/commitdiff
Readded "downgrade-1.0" which I (inadvertantly) pulled with the
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 26 Aug 2001 04:59:37 +0000 (04:59 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 26 Aug 2001 04:59:37 +0000 (04:59 +0000)
  map_to_storage patch.  I knew it had to have a better home, and
  it sure looks like this is it.

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

modules/http/http_protocol.c

index 7aeb445a26e1fbce31144cebba2d938dff392b5f..2c94d0edcce43ae5ea58c826f2209a8cf77c8bc9 100644 (file)
@@ -898,6 +898,10 @@ static void basic_http_header_check(request_rec *r,
     else {
         *protocol = AP_SERVER_PROTOCOL;
     }
+
+    if (r->proto_num > HTTP_VERSION(1,0) && apr_table_get(r->subprocess_env, "downgrade-1.0")) {
+        r->proto_num = HTTP_VERSION(1,0);
+    }
 }
 
 /* fill "bb" with a barebones/initial HTTP response header */