1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

changing r->protocol to HTTP/2.0 for HTTP/2 requests, fixes PR 59313

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1740108 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Eissing
2016-04-20 11:02:54 +00:00
parent 36bd5637eb
commit 83099f1329
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
-*- coding: utf-8 -*-
Changes with Apache 2.5.0
*) mod_http2: r->protocol changed to "HTTP/2.0" (was "HTTP/2") as this will
give expected syntax in CGI's SERVER_PROTOCOL is more compatible with
existing major/minor handling. Fixes PR 59313.
*) core: explicitly exclude 'h2' from protocols announced via an Upgrade:
header as commanded by http-wg.

View File

@@ -372,7 +372,7 @@ request_rec *h2_request_create_rec(const h2_request *req, conn_rec *c)
}
ap_parse_uri(r, req->path);
r->protocol = "HTTP/2";
r->protocol = "HTTP/2.0";
r->proto_num = HTTP_VERSION(2, 0);
r->the_request = apr_psprintf(r->pool, "%s %s %s",