Software /
code /
prosody
Diff
plugins/mod_compression.lua @ 2288:3c17fc919f7b
mod_compression: Define db (dialback) namespace in stream header.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Tue, 01 Dec 2009 00:10:47 +0100 |
parent | 2286:e0b2d934f316 |
child | 2289:8938265695c9 |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Mon Nov 30 23:25:10 2009 +0100 +++ b/plugins/mod_compression.lua Tue Dec 01 00:10:47 2009 +0100 @@ -161,7 +161,7 @@ end; session:reset_stream(); local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams", - version = "1.0", to = session.to_host, from = session.from_host}; + ["xmlns:db"] = 'jabber:server:dialback', version = "1.0", to = session.to_host, from = session.from_host}; session.sends2s("<?xml version='1.0'?>"); session.sends2s(st.stanza("stream:stream", default_stream_attr):top_tag()); session.compressed = true;