aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-30 02:35:28 +0200
committerKim Alvefur <zash@zash.se>2019-07-30 02:35:28 +0200
commit2fb3c3041d82abe4b51cd03f210881c52fd53b03 (patch)
tree953bbaceeec4ab9c63154bd1001f2c2ee667fb8f /net
parent75bfec7731e0d42ad5733a62b9772db9c72aeef9 (diff)
downloadprosody-2fb3c3041d82abe4b51cd03f210881c52fd53b03.tar.gz
prosody-2fb3c3041d82abe4b51cd03f210881c52fd53b03.zip
net.websocket: Fix log call to pass data via format string instead of concatenation
Diffstat (limited to 'net')
-rw-r--r--net/websocket.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/websocket.lua b/net/websocket.lua
index bb26c100..fb16b8bb 100644
--- a/net/websocket.lua
+++ b/net/websocket.lua
@@ -113,7 +113,7 @@ function websocket_listeners.onincoming(conn, buffer, err) -- luacheck: ignore 2
frame.MASK = true; -- RFC 6455 6.1.5: If the data is being sent by the client, the frame(s) MUST be masked
conn:write(frames.build(frame));
elseif frame.opcode == 0xA then -- Pong frame
- log("debug", "Received unexpected pong frame: " .. tostring(frame.data));
+ log("debug", "Received unexpected pong frame: %s", frame.data);
else
return fail(s, 1002, "Reserved opcode");
end