Mercurial > prosody-modules
diff mod_websocket/mod_websocket.lua @ 840:f568661c9d39
mod_websocket: Fix frame length calculation
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Thu, 04 Oct 2012 16:38:39 +0200 |
parents | d297d76010d4 |
children | 32df4d13f178 |
line wrap: on
line diff
--- a/mod_websocket/mod_websocket.lua Thu Oct 04 16:37:33 2012 +0200 +++ b/mod_websocket/mod_websocket.lua Thu Oct 04 16:38:39 2012 +0200 @@ -69,7 +69,7 @@ for i = 1, length_bytes do pos = pos + 1; - result.length = result.length * 255 + string.byte(frame, pos); + result.length = result.length * 256 + string.byte(frame, pos); end if result.MASK then