From: William A. Rowe Jr Date: Sun, 26 Aug 2001 04:59:37 +0000 (+0000) Subject: Readded "downgrade-1.0" which I (inadvertantly) pulled with the X-Git-Tag: 2.0.25~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9dee61f758942743fc27d3dc561a5b10294232a;p=apache 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 --- 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 */