Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 1541:591732da1306
mod_bosh: Mark a session as secure if it is created with HTTPS
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 12 Jul 2009 19:16:37 +0100 |
parent | 1537:6670af04aeb6 |
child | 1551:c6646e806d18 |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Sun Jul 12 19:16:13 2009 +0100 +++ b/plugins/mod_bosh.lua Sun Jul 12 19:16:37 2009 +0100 @@ -147,7 +147,7 @@ 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);