]> granicus.if.org Git - apache/commitdiff
Reverting the unwanted revert of r1852989.
authorStefan Eissing <icing@apache.org>
Wed, 13 Mar 2019 12:45:39 +0000 (12:45 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 13 Mar 2019 12:45:39 +0000 (12:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1855411 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_request.c

index d3341bb4da446f0507105f9f84c79018229d3679..5893c8b26741b1c2d55a80c48046805e53bd80bb 100644 (file)
@@ -282,7 +282,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') {