]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge of r1852986 from trunk:
authorStefan Eissing <icing@apache.org>
Tue, 5 Feb 2019 11:52:28 +0000 (11:52 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 5 Feb 2019 11:52:28 +0000 (11:52 +0000)
mod_http2: disentangelment of stream and request method.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1852989 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_request.c

index 8899c4feb75325bd4c4dfe504f548cdc00c0c5db..5ee88e9679fa94788e44d35f23b9f118992f9f09 100644 (file)
@@ -266,7 +266,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->method = req->method;
+    r->method = apr_pstrdup(r->pool, req->method);
     /* Provide quick information about the request method as soon as known */
     r->method_number = ap_method_number_of(r->method);
     if (r->method_number == M_GET && r->method[0] == 'H') {