mod_websocket: Include the value of cross_domain_websocket in debug message 0.11
authorKim Alvefur <zash@zash.se>
Fri, 18 Jan 2019 18:37:04 +0100
branch0.11
changeset 9804 5c5117d41133
parent 9795 ca0473cadd1c
child 9805 b87cd83a2685
child 9809 7bfc4269dc36
mod_websocket: Include the value of cross_domain_websocket in debug message
plugins/mod_websocket.lua
--- a/plugins/mod_websocket.lua	Thu Jan 17 01:15:29 2019 +0100
+++ b/plugins/mod_websocket.lua	Fri Jan 18 18:37:04 2019 +0100
@@ -159,7 +159,7 @@
 	end
 
 	if not check_origin(request.headers.origin or "") then
-		module:log("debug", "Origin %s is not allowed by 'cross_domain_websocket'", request.headers.origin or "(missing header)");
+		module:log("debug", "Origin %s is not allowed by 'cross_domain_websocket' [ %s ]", request.headers.origin or "(missing header)", cross_domain);
 		return 403;
 	end