Software / code / prosody
Diff
util/json.lua @ 11157:413bd21ba449 0.11
net.websocket.frames: Read buffer length correctly in Lua 5.1 (fix #1598)
COMPAT: The __len metamethod does not work with tables in Lua 5.1.
Both strings and util.dbuffer now expose their length as a :len()
method.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 12 Oct 2020 20:21:18 +0200 |
| parent | 9329:19bc3ec13f07 |
| child | 12792:997f3ca90628 |