aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-05-08 07:11:33 +0100
committerMatthew Wild <mwild1@gmail.com>2018-05-08 07:11:33 +0100
commit472e7680219e31cda35ba4d1369e37b2e8d70d1e (patch)
treeb348da177d416099742919e56898c2cb8ce2ac68 /plugins
parent61ffb86424eb6e92728280e7c2c146f6fae1fa7e (diff)
downloadprosody-472e7680219e31cda35ba4d1369e37b2e8d70d1e.tar.gz
prosody-472e7680219e31cda35ba4d1369e37b2e8d70d1e.zip
mod_websocket: Store the request object on the session for use by other modulesvault/0.10.1
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_websocket.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua
index ed73962d..edc104df 100644
--- a/plugins/mod_websocket.lua
+++ b/plugins/mod_websocket.lua
@@ -257,6 +257,7 @@ function handle_request(event)
local session = sessions[conn];
session.secure = consider_websocket_secure or session.secure;
+ session.websocket_request = request;
session.open_stream = session_open_stream;
session.close = session_close;