summaryrefslogtreecommitdiffstats
path: root/net/Socket.cpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-05-20 12:11:38 +0100
committerMichael Meeks <michael.meeks@collabora.com>2019-05-20 12:30:01 +0100
commit046ab32e46831f0f44d912e69f0079c1c7f9d4f7 (patch)
tree9949f836340fd740577a239110017353ecedadf0 /net/Socket.cpp
parenttdf#124906: Hack for dead keys in iOS app and iOS Safari against Online (diff)
downloadonline-046ab32e46831f0f44d912e69f0079c1c7f9d4f7.tar.gz
online-046ab32e46831f0f44d912e69f0079c1c7f9d4f7.zip
Use compile-time rather than run-time string concatenation.
Saves some time & space. Change-Id: If1e62056447fb7e8f26e8cf107451876adf3fecb
Diffstat (limited to 'net/Socket.cpp')
-rw-r--r--net/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/Socket.cpp b/net/Socket.cpp
index fb7e701ee0..c1225877af 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -296,7 +296,7 @@ void SocketPoll::clientRequestWebsocketUpgrade(const std::shared_ptr<StreamSocke
"Cache-Control:no-cache\r\n"
"Pragma:no-cache\r\n"
"Sec-WebSocket-Version:13\r\n"
- "User-Agent: " << WOPI_AGENT_STRING << "\r\n"
+ "User-Agent: " WOPI_AGENT_STRING "\r\n"
"\r\n";
socket->send(oss.str());
websocketHandler->onConnect(socket);