Mercurial > prosody-hg
diff net/websocket/frames.lua @ 8728:41c959c5c84b
Fix spelling throughout the codebase [codespell]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 04 Feb 2018 01:51:25 +0100 |
| parents | 3a390fa561bf |
| children | 86c431650dfd 76f46c2579a2 |
line wrap: on
line diff
--- 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 = {};
