# HG changeset patch # User Florian Zeitz # Date 1349361519 -7200 # Node ID f568661c9d39d503c8719a47cf4397e979b133b1 # Parent d297d76010d4e59f746e83d44fcf76dabb647b49 mod_websocket: Fix frame length calculation diff -r d297d76010d4 -r f568661c9d39 mod_websocket/mod_websocket.lua --- 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