mod_compression: Fixed: Starting compression only worked before auth

Wed, 02 Sep 2009 19:22:06 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Wed, 02 Sep 2009 19:22:06 +0500
changeset 1728
cb4c94b47d53
parent 1727
cbdc7bf61e0f
child 1729
2876a0ecceab

mod_compression: Fixed: Starting compression only worked before auth

plugins/mod_compression.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_compression.lua	Thu Aug 20 16:30:32 2009 +0100
+++ b/plugins/mod_compression.lua	Wed Sep 02 19:22:06 2009 +0500
@@ -35,7 +35,7 @@
 );
 
 -- TODO Support compression on S2S level too.
-module:add_handler({"c2s_unauthed", "c2s_authed"}, "compress", xmlns_compression_protocol,
+module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protocol,
 		function(session, stanza)
 			-- fail if we are already compressed
 			if session.compressed then

mercurial