]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
showing HTTP/2 in access logs and server status
authorStefan Eissing <icing@apache.org>
Tue, 13 Oct 2015 10:25:17 +0000 (10:25 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 13 Oct 2015 10:25:17 +0000 (10:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1708319 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_task.c

index bbea7b20f8aa1ae48309e38cd9a04368b5d703ea..58b39c53970cccbdd388e242e291667d406959eb 100644 (file)
@@ -379,8 +379,6 @@ static request_rec *h2_task_create_request(h2_task_env *env)
     
     /* Time to populate r with the data we have. */
     r->request_time = apr_time_now();
-    r->the_request = apr_psprintf(r->pool, "%s %s HTTP/1.1", 
-                                  env->method, env->path);
     r->method = env->method;
     /* Provide quick information about the request method as soon as known */
     r->method_number = ap_method_number_of(r->method);
@@ -391,6 +389,9 @@ static request_rec *h2_task_create_request(h2_task_env *env)
     ap_parse_uri(r, env->path);
     r->protocol = (char*)"HTTP/2";
     r->proto_num = HTTP_VERSION(2, 0);
+
+    r->the_request = apr_psprintf(r->pool, "%s %s %s", 
+                                  r->method, env->path, r->protocol);
     
     /* update what we think the virtual host is based on the headers we've
      * now read. may update status.