aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-12 19:16:37 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-12 19:16:37 +0100
commitf0ac98b7892e16b50e7f6bbb66b128cf55266c0b (patch)
treeb7f5e5ab0d1cf0e308d49405a554aed9677a4a54
parent2365233a56a835ce38899524a9a50acdf53d8ff7 (diff)
downloadprosody-f0ac98b7892e16b50e7f6bbb66b128cf55266c0b.tar.gz
prosody-f0ac98b7892e16b50e7f6bbb66b128cf55266c0b.zip
mod_bosh: Mark a session as secure if it is created with HTTPS
-rw-r--r--plugins/mod_bosh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index ccf08ec4..fdda206b 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -147,7 +147,7 @@ function stream_callbacks.streamopened(request, attr)
local session = { type = "c2s_unauthed", conn = {}, sid = sid, rid = attr.rid, host = attr.to, bosh_version = attr.ver, bosh_wait = attr.wait, streamid = sid,
bosh_hold = BOSH_DEFAULT_HOLD, bosh_max_inactive = BOSH_DEFAULT_INACTIVITY,
requests = { }, send_buffer = {}, reset_stream = bosh_reset_stream, close = bosh_close_stream,
- dispatch_stanza = core_process_stanza, log = logger.init("bosh"..sid) };
+ dispatch_stanza = core_process_stanza, log = logger.init("bosh"..sid), secure = request.secure };
sessions[sid] = session;
log("info", "New BOSH session, assigned it sid '%s'", sid);