Skip to content

Commit 1ec1ac6

Browse files
committed
Merge pull request lipp#86 from afan1/tools-restruct
Extracted mime instantiation to outer scope
2 parents f83742c + e20e459 commit 1ec1ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/websocket/tools.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local bit = require'websocket.bit'
2+
local mime = require'mime'
23
local rol = bit.rol
34
local bxor = bit.bxor
45
local bor = bit.bor
@@ -158,7 +159,6 @@ local sha1_wiki = function(msg)
158159
end
159160

160161
local base64_encode = function(data)
161-
local mime = require'mime'
162162
return (mime.b64(data))
163163
end
164164

0 commit comments

Comments
 (0)