util.pposix: Compatibility with Solaris systems (thanks Filip)
[prosody.git] / plugins / mod_compression.lua
index 7e53a5e5d7ab629e4f1d2634dc0ff7e712a13800..f1cae7378e23019ae8b6063eb4a8aa9a6582cda7 100644 (file)
@@ -35,7 +35,7 @@ module:add_event_hook("stream-features",
 );
 
 -- 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