Software /
code /
prosody
Changeset
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 |
parents | 1540:19fb86c19a59 |
children | 1542:e5d5f864c125 1543:d2d80c1cad6c |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);