From d9dee61f758942743fc27d3dc561a5b10294232a Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Sun, 26 Aug 2001 04:59:37 +0000 Subject: [PATCH] Readded "downgrade-1.0" which I (inadvertantly) pulled with the 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 7aeb445a26..2c94d0edcc 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -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 */ -- 2.50.1