mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
*) mod_http2: workaround to facilitate use of common internal protocol/method/uri
checks. The module now handles master/secondary connections and has marked methods according to use. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1878926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -278,7 +278,7 @@ request_rec *h2_request_create_rec(const h2_request *req, conn_rec *c)
|
||||
|
||||
/* Time to populate r with the data we have. */
|
||||
r->request_time = req->request_time;
|
||||
r->the_request = apr_psprintf(r->pool, "%s %s HTTP/2.0",
|
||||
r->the_request = apr_psprintf(r->pool, "%s %s HTTP/1.2",
|
||||
req->method, req->path ? req->path : "");
|
||||
r->headers_in = apr_table_clone(r->pool, req->headers);
|
||||
|
||||
@@ -295,7 +295,9 @@ request_rec *h2_request_create_rec(const h2_request *req, conn_rec *c)
|
||||
r->status = HTTP_OK;
|
||||
goto die;
|
||||
}
|
||||
|
||||
r->protocol = "HTTP/2.0";
|
||||
r->proto_num = HTTP_VERSION(2, 0);
|
||||
|
||||
/* we may have switched to another server */
|
||||
r->per_dir_config = r->server->lookup_defaults;
|
||||
|
||||
|
Reference in New Issue
Block a user