plugins/mod_compression.lua

changeset 3301
772fb30b28fb
parent 3226
69e920d7c968
parent 3295
8865d1b3dce2
child 3532
4f2cd1c688e1
equal deleted inserted replaced
3294:89dd67cc3689 3301:772fb30b28fb
54 -- do we support the mechanism 54 -- do we support the mechanism
55 for a in comp_st:children() do 55 for a in comp_st:children() do
56 local algorithm = a[1] 56 local algorithm = a[1]
57 if algorithm == "zlib" then 57 if algorithm == "zlib" then
58 session.sends2s(st.stanza("compress", {xmlns=xmlns_compression_protocol}):tag("method"):text("zlib")) 58 session.sends2s(st.stanza("compress", {xmlns=xmlns_compression_protocol}):tag("method"):text("zlib"))
59 session.log("info", "Enabled compression using zlib.") 59 session.log("debug", "Enabled compression using zlib.")
60 return true; 60 return true;
61 end 61 end
62 end 62 end
63 session.log("debug", "Remote server supports no compression algorithm we support.") 63 session.log("debug", "Remote server supports no compression algorithm we support.")
64 end 64 end

mercurial