aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-29 01:42:19 +0200
committerKim Alvefur <zash@zash.se>2023-07-29 01:42:19 +0200
commit6ac58a4d1c5bf619d5a345d61b4ca10cfae1a017 (patch)
tree0ba933f09f7d50be1a0d18de74d5af2688c1e9c6 /net
parent7721cc667be083d31cb6371842a717fd7488f434 (diff)
downloadprosody-6ac58a4d1c5bf619d5a345d61b4ca10cfae1a017.tar.gz
prosody-6ac58a4d1c5bf619d5a345d61b4ca10cfae1a017.zip
net.websocket.frames: Remove completed TODO
The XOR is done in C since 4e5a2af9dd19
Diffstat (limited to 'net')
-rw-r--r--net/websocket/frames.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/websocket/frames.lua b/net/websocket/frames.lua
index bf61628f..c22a12de 100644
--- a/net/websocket/frames.lua
+++ b/net/websocket/frames.lua
@@ -77,7 +77,6 @@ local function parse_frame_header(frame)
end
-- XORs the string `str` with the array of bytes `key`
--- TODO: optimize
local function apply_mask(str, key, from, to)
return sxor(str:sub(from or 1, to or -1), key);
end