]> granicus.if.org Git - apache/commitdiff
Concat string at compile time in order to save a few cycles.
authorChristophe Jaillet <jailletc36@apache.org>
Mon, 1 Jun 2015 05:12:54 +0000 (05:12 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Mon, 1 Jun 2015 05:12:54 +0000 (05:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1682816 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_wstunnel.c

index f0816b261c2141e55d9c309068cc954f8966efbb..1602cbbb710848b3e534220defae70b28271a66b 100644 (file)
@@ -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);