moononournation %!s(int64=7) %!d(string=hai) anos
pai
achega
075f41f3a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/httpserver-websocket.lua

+ 1 - 1
bin/httpserver-websocket.lua

@@ -9,7 +9,7 @@ local function decode(chunk)
     if #chunk < 4 then return end
     len = bit.bor(
       bit.lshift(string.byte(chunk, 3), 8),
-      byte(chunk, 4))
+      string.byte(chunk, 4))
     offset = 4
   elseif len == 127 then
     if #chunk < 10 then return end