net/websocket/frames.lua
changeset 8731 41c959c5c84b
parent 8445 3a390fa561bf
child 9663 86c431650dfd
child 11110 76f46c2579a2
--- a/net/websocket/frames.lua	Thu Apr 05 19:37:32 2018 +0200
+++ b/net/websocket/frames.lua	Sun Feb 04 01:51:25 2018 +0100
@@ -112,9 +112,9 @@
 -- TODO: optimize
 local function apply_mask(str, key, from, to)
 	from = from or 1
-	if from < 0 then from = #str + from + 1 end -- negative indicies
+	if from < 0 then from = #str + from + 1 end -- negative indices
 	to = to or #str
-	if to < 0 then to = #str + to + 1 end -- negative indicies
+	if to < 0 then to = #str + to + 1 end -- negative indices
 	local key_len = #key
 	local counter = 0;
 	local data = {};