aboutsummaryrefslogtreecommitdiffstats
path: root/net/websocket.lua
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2014-09-26 22:12:21 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2014-09-26 22:12:21 +0200
commit0504583316908806a24c975e9acb775a44d2c317 (patch)
treef831ddad5898ff1f96da6bf5d77647f5c1be1540 /net/websocket.lua
parentb33b263b340740a6a98070899277bab8ada84968 (diff)
downloadprosody-0504583316908806a24c975e9acb775a44d2c317.tar.gz
prosody-0504583316908806a24c975e9acb775a44d2c317.zip
net.websocket: Make data masking configurable
Diffstat (limited to 'net/websocket.lua')
-rw-r--r--net/websocket.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/websocket.lua b/net/websocket.lua
index f8daa278..a4274eec 100644
--- a/net/websocket.lua
+++ b/net/websocket.lua
@@ -134,7 +134,7 @@ function websocket_methods:close(code, reason)
log("debug", "closing WebSocket with code %i: %s" , code , tostring(reason));
self.readyState = 2;
local handler = self.handler;
- handler:write(frames.build_close(code, reason));
+ handler:write(frames.build_close(code, reason, true));
-- Do not close socket straight away, wait for acknowledgement from server.
self.close_timer = timer.add_task(close_timeout, close_timeout_cb, self);
elseif self.readyState == 2 then