# HG changeset patch # User Matthew Wild # Date 1247422597 -3600 # Node ID 591732da13069f5d213915e031eb8a5a450c6f6c # Parent 19fb86c19a59aa0d1995279655f5282dec615891 mod_bosh: Mark a session as secure if it is created with HTTPS diff -r 19fb86c19a59 -r 591732da1306 plugins/mod_bosh.lua --- 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);