diff options
author | Kim Alvefur <zash@zash.se> | 2018-02-04 01:51:25 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-02-04 01:51:25 +0100 |
commit | b1235c60a71fe55ac329580a6792e04fba9a4d04 (patch) | |
tree | 284e796694d96d55a3f24db148b6f95290c768fe /net/websocket/frames.lua | |
parent | 78c3f2328fd098579c036a5fc8b0cb5bf6fdc633 (diff) | |
download | prosody-b1235c60a71fe55ac329580a6792e04fba9a4d04.tar.gz prosody-b1235c60a71fe55ac329580a6792e04fba9a4d04.zip |
Fix spelling throughout the codebase [codespell]
Diffstat (limited to 'net/websocket/frames.lua')
-rw-r--r-- | net/websocket/frames.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/websocket/frames.lua b/net/websocket/frames.lua index 385f64ce..ba25d261 100644 --- a/net/websocket/frames.lua +++ b/net/websocket/frames.lua @@ -112,9 +112,9 @@ end -- 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 = {}; |