]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Add comments to document why we do this.
authorRuediger Pluem <rpluem@apache.org>
Wed, 17 Jun 2020 18:33:20 +0000 (18:33 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 17 Jun 2020 18:33:20 +0000 (18:33 +0000)
  No functional change. [skip ci].

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1878936 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_request.c

index 6bbf6867a67d1cb3f90ddb820c636ca1367c96e4..40c763e4fc1d7ab5e33f1c7cdd31ee1f2ece56b6 100644 (file)
@@ -278,6 +278,10 @@ 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;
+    /*
+     * Use HTTP/1.2 as ap_parse_request_line only deals with
+     * HTTP/1.x requests.
+     */
     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,6 +299,7 @@ request_rec *h2_request_create_rec(const h2_request *req, conn_rec *c)
         r->status = HTTP_OK;
         goto die;
     }
+    /* Note that this is actually a HTTP/2.0 request */
     r->protocol = "HTTP/2.0";
     r->proto_num = HTTP_VERSION(2, 0);