Diff

net/websocket/frames.lua @ 13250:cfd062d025b0

net.websocket.frames: Remove completed TODO The XOR is done in C since 4e5a2af9dd19
author Kim Alvefur <zash@zash.se>
date Sat, 29 Jul 2023 01:42:19 +0200
parent 12974:ba409c67353b
line wrap: on
line diff
--- a/net/websocket/frames.lua	Wed Jul 26 14:39:36 2023 +0200
+++ b/net/websocket/frames.lua	Sat Jul 29 01:42:19 2023 +0200
@@ -77,7 +77,6 @@
 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