From: Stefan Eissing Date: Tue, 13 Oct 2015 10:25:17 +0000 (+0000) Subject: showing HTTP/2 in access logs and server status X-Git-Tag: 2.5.0-alpha~2717 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb824369ba93ab5c608b8f1589020fa470a07e98;p=thirdparty%2Fapache%2Fhttpd.git showing HTTP/2 in access logs and server status git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1708319 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_task.c b/modules/http2/h2_task.c index bbea7b20f8a..58b39c53970 100644 --- a/modules/http2/h2_task.c +++ b/modules/http2/h2_task.c @@ -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.