aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2024-03-17 10:10:24 +0000
committerMatthew Wild <mwild1@gmail.com>2024-03-17 10:10:24 +0000
commit2bc341d8b10b37a949e5108f45286857891e77e9 (patch)
tree59013af671b09605114cc4edec79827be2da897b
parent1b62552e1d71b9e2cae804949525f994ecce1a9b (diff)
downloadprosody-2bc341d8b10b37a949e5108f45286857891e77e9.tar.gz
prosody-2bc341d8b10b37a949e5108f45286857891e77e9.zip
mod_bosh: Set base_type on session
This fixes a traceback with mod_saslauth. Ideally we move this to util.session at some point, though.
-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 f4fec8f0..091a7d81 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -325,7 +325,7 @@ function stream_callbacks.streamopened(context, attr)
sid = new_uuid();
-- TODO use util.session
local session = {
- type = "c2s_unauthed", conn = request.conn, sid = sid, host = attr.to,
+ base_type = "c2s", type = "c2s_unauthed", conn = request.conn, sid = sid, host = attr.to,
rid = rid - 1, -- Hack for initial session setup, "previous" rid was $current_request - 1
bosh_version = attr.ver, bosh_wait = wait, streamid = sid,
bosh_max_inactive = bosh_max_inactivity, bosh_responses = cache.new(BOSH_HOLD+1):table();