diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-30 02:35:28 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-30 02:35:28 +0200 |
commit | 1ea8e965ca4d59333bcf473fc164da73adaca8ac (patch) | |
tree | 953bbaceeec4ab9c63154bd1001f2c2ee667fb8f | |
parent | 90b6787b47dfdbc825d8d821a717e8f2bd3b3f03 (diff) | |
download | prosody-1ea8e965ca4d59333bcf473fc164da73adaca8ac.tar.gz prosody-1ea8e965ca4d59333bcf473fc164da73adaca8ac.zip |
net.websocket: Fix log call to pass data via format string instead of concatenation
-rw-r--r-- | net/websocket.lua | 2 |
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 |