Software /
code /
prosody
Diff
net/websocket/frames.lua @ 9691:e11e076f0eb8
various: Don't rely on _G.unpack existing
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Dec 2018 17:09:55 +0100 |
parent | 9659:86c431650dfd |
child | 9692:affcbccc1dff |
line wrap: on
line diff
--- a/net/websocket/frames.lua Sat Dec 08 17:07:28 2018 +0100 +++ b/net/websocket/frames.lua Sat Dec 08 17:09:55 2018 +0100 @@ -16,6 +16,7 @@ local bxor = bit.bxor; local lshift = bit.lshift; local rshift = bit.rshift; +local unpack = table.unpack or unpack; -- luacheck: ignore 113 local t_concat = table.concat; local s_byte = string.byte;