From: Christophe Jaillet Date: Mon, 1 Jun 2015 05:12:54 +0000 (+0000) Subject: Concat string at compile time in order to save a few cycles. X-Git-Tag: 2.5.0-alpha~3118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86c204dac302d3cf8dfdf2eba528332f26f0ef1c;p=apache Concat string at compile time in order to save a few cycles. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1682816 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_wstunnel.c b/modules/proxy/mod_proxy_wstunnel.c index f0816b261c..1602cbbb71 100644 --- a/modules/proxy/mod_proxy_wstunnel.c +++ b/modules/proxy/mod_proxy_wstunnel.c @@ -363,7 +363,7 @@ static int proxy_wstunnel_request(apr_pool_t *p, request_rec *r, return rv; } - buf = apr_pstrcat(p, "Upgrade: WebSocket", CRLF, "Connection: Upgrade", CRLF, CRLF, NULL); + buf = apr_pstrdup(p, "Upgrade: WebSocket" CRLF "Connection: Upgrade" CRLF CRLF); ap_xlate_proto_to_ascii(buf, strlen(buf)); e = apr_bucket_pool_create(buf, strlen(buf), p, c->bucket_alloc); APR_BRIGADE_INSERT_TAIL(header_brigade, e);