Diff

plugins/mod_websocket.lua @ 8789:4ae8dd415e94 0.10.1

mod_websocket: Store the request object on the session for use by other modules
author Matthew Wild <mwild1@gmail.com>
date Tue, 08 May 2018 07:11:33 +0100
parent 8145:4d0f5ea19851
child 8794:0e2c1c4d4f78
line wrap: on
line diff
--- a/plugins/mod_websocket.lua	Tue Apr 24 22:58:46 2018 +0100
+++ b/plugins/mod_websocket.lua	Tue May 08 07:11:33 2018 +0100
@@ -257,6 +257,7 @@
 	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;