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 | 3ec060fc0c140fa5f7fb09b3d64d715559dd54be (patch) | |
tree | 284e796694d96d55a3f24db148b6f95290c768fe /net/websocket/frames.lua | |
parent | 6f6e04b6c6c9e934d2837c353aeccb0617c414e9 (diff) | |
download | prosody-3ec060fc0c140fa5f7fb09b3d64d715559dd54be.tar.gz prosody-3ec060fc0c140fa5f7fb09b3d64d715559dd54be.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 = {}; |