mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
mod_compression: Don't succeed after indicating a failure.
This commit is contained in:
parent
84ece3aca6
commit
b01e95ae14
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc
|
||||||
local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method");
|
local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method");
|
||||||
session.send(error_st);
|
session.send(error_st);
|
||||||
session.log("warn", "Tried to establish another compression layer.");
|
session.log("warn", "Tried to establish another compression layer.");
|
||||||
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
-- checking if the compression method is supported
|
-- checking if the compression method is supported
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue