Software /
code /
prosody
Diff
net/websocket.lua @ 6455:b6514e691a70
net.websocket: Make data masking configurable
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Fri, 26 Sep 2014 22:12:21 +0200 |
parent | 6407:4bbd198cf3e6 |
child | 7759:69706084bdfe |
line wrap: on
line diff
--- a/net/websocket.lua Sun Sep 28 03:06:29 2014 +0200 +++ b/net/websocket.lua Fri Sep 26 22:12:21 2014 +0200 @@ -134,7 +134,7 @@ 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