Mercurial > prosody-hg
changeset 13962:c5a2846c9cba
mod_bosh: Pass stanzas trough bytes/out filter
For consistency with mod_c2s. Not sure if this makes sense given that
BOSH is different from other methods. E.g. with compression, this would
compress only the stanzas and not the opening and closing body tags
without more work.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 01 Jul 2025 14:07:55 +0200 |
| parents | ab7be38146bc |
| children | 44f859531df7 |
| files | plugins/mod_bosh.lua |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Tue Jul 01 14:07:49 2025 +0200 +++ b/plugins/mod_bosh.lua Tue Jul 01 14:07:55 2025 +0200 @@ -361,6 +361,7 @@ s = st.clone(s); s.attr.xmlns = "jabber:client"; end + s = session.filter("bytes/out", tostring(s)); --log("debug", "Sending BOSH data: %s", s); if not s then return true end t_insert(session.send_buffer, tostring(s));
