Software /
code /
prosody
Comparison
plugins/mod_websocket.lua @ 9800:5c5117d41133 0.11
mod_websocket: Include the value of cross_domain_websocket in debug message
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 18 Jan 2019 18:37:04 +0100 |
parent | 9415:02155a10c5e9 |
child | 9801:b87cd83a2685 |
child | 9805:7bfc4269dc36 |
comparison
equal
deleted
inserted
replaced
9791:ca0473cadd1c | 9800:5c5117d41133 |
---|---|
157 module:log("debug", "Client didn't want to talk XMPP, list of protocols was %s", request.headers.sec_websocket_protocol or "(empty)"); | 157 module:log("debug", "Client didn't want to talk XMPP, list of protocols was %s", request.headers.sec_websocket_protocol or "(empty)"); |
158 return 501; | 158 return 501; |
159 end | 159 end |
160 | 160 |
161 if not check_origin(request.headers.origin or "") then | 161 if not check_origin(request.headers.origin or "") then |
162 module:log("debug", "Origin %s is not allowed by 'cross_domain_websocket'", request.headers.origin or "(missing header)"); | 162 module:log("debug", "Origin %s is not allowed by 'cross_domain_websocket' [ %s ]", request.headers.origin or "(missing header)", cross_domain); |
163 return 403; | 163 return 403; |
164 end | 164 end |
165 | 165 |
166 local function websocket_close(code, message) | 166 local function websocket_close(code, message) |
167 conn:write(build_close(code, message)); | 167 conn:write(build_close(code, message)); |