--- 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 = {};