Comparison

plugins/mod_compression.lua @ 2293:abd28ed5d8b0

mod_compression: Removing trailing whitespace.
author Tobias Markmann <tm@ayena.de>
date Tue, 01 Dec 2009 21:17:13 +0100
parent 2292:9c5941198719
child 2324:9f7eb1054a2f
comparison
equal deleted inserted replaced
2292:9c5941198719 2293:abd28ed5d8b0
158 end; 158 end;
159 session:reset_stream(); 159 session:reset_stream();
160 local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams", 160 local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams",
161 ["xmlns:db"] = 'jabber:server:dialback', version = "1.0", to = session.to_host, from = session.from_host}; 161 ["xmlns:db"] = 'jabber:server:dialback', version = "1.0", to = session.to_host, from = session.from_host};
162 session.sends2s("<?xml version='1.0'?>"); 162 session.sends2s("<?xml version='1.0'?>");
163 session.sends2s(st.stanza("stream:stream", default_stream_attr):top_tag()); 163 session.sends2s(st.stanza("stream:stream", default_stream_attr):top_tag());
164 session.compressed = true; 164 session.compressed = true;
165 end 165 end
166 ); 166 );
167 167
168 module:add_handler({"c2s_unauthed", "c2s", "s2sin_unauthed", "s2sin"}, "compress", xmlns_compression_protocol, 168 module:add_handler({"c2s_unauthed", "c2s", "s2sin_unauthed", "s2sin"}, "compress", xmlns_compression_protocol,