Software /
code /
prosody
Diff
net/websocket/frames.lua @ 6456:a8d9d3eea6f4
Merge 0.10->trunk
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Mon, 29 Sep 2014 13:59:16 -0400 |
parent | 6455:b6514e691a70 |
child | 6895:f04fadabd5d9 |
line wrap: on
line diff
--- a/net/websocket/frames.lua Fri Sep 26 17:44:14 2014 -0400 +++ b/net/websocket/frames.lua Mon Sep 29 13:59:16 2014 -0400 @@ -171,7 +171,7 @@ return code, message end -local function build_close(code, message) +local function build_close(code, message, mask) local data = pack_uint16be(code); if message then assert(#message<=123, "Close reason must be <=123 bytes"); @@ -180,7 +180,7 @@ return build_frame({ opcode = 0x8; FIN = true; - MASK = true; + MASK = mask; data = data; }); end