Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
2287:efea91c740a2 | 2288:3c17fc919f7b |
---|---|
159 setup_decompression(session, inflate_stream); | 159 setup_decompression(session, inflate_stream); |
160 return true; | 160 return true; |
161 end; | 161 end; |
162 session:reset_stream(); | 162 session:reset_stream(); |
163 local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams", | 163 local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams", |
164 version = "1.0", to = session.to_host, from = session.from_host}; | 164 ["xmlns:db"] = 'jabber:server:dialback', version = "1.0", to = session.to_host, from = session.from_host}; |
165 session.sends2s("<?xml version='1.0'?>"); | 165 session.sends2s("<?xml version='1.0'?>"); |
166 session.sends2s(st.stanza("stream:stream", default_stream_attr):top_tag()); | 166 session.sends2s(st.stanza("stream:stream", default_stream_attr):top_tag()); |
167 session.compressed = true; | 167 session.compressed = true; |
168 end | 168 end |
169 ); | 169 ); |