You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2022/02/18 09:31:30 UTC

svn commit: r1898173 - /httpd/httpd/trunk/modules/http2/h2_request.c

Author: icing
Date: Fri Feb 18 09:31:30 2022
New Revision: 1898173

URL: http://svn.apache.org/viewvc?rev=1898173&view=rev
Log:
  *) mod_http2: optimize authority construction on upgraded
     h1 requests.
     [Ruediger Pluem]

Modified:
    httpd/httpd/trunk/modules/http2/h2_request.c

Modified: httpd/httpd/trunk/modules/http2/h2_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_request.c?rev=1898173&r1=1898172&r2=1898173&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/h2_request.c (original)
+++ httpd/httpd/trunk/modules/http2/h2_request.c Fri Feb 18 09:31:30 2022
@@ -97,7 +97,7 @@ apr_status_t h2_request_rcreate(h2_reque
     if (!ap_strchr_c(authority, ':')) {
         if (r->parsed_uri.port_str) {
             /* Yes, it was there, add it again. */
-            authority = apr_psprintf(pool, "%s:%s", authority, r->parsed_uri.port_str);
+            authority = apr_pstrcat(pool, authority, ":", r->parsed_uri.port_str, NULL);
         }
         else if (!r->parsed_uri.hostname && r->server && r->server->port) {
             /* If there was no hostname in the parsed URL, the URL was relative.