aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_compression.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-08-13 10:19:33 +0200
committerTobias Markmann <tm@ayena.de>2009-08-13 10:19:33 +0200
commitedd23d44518e571e9493ee8411911912ce04101e (patch)
tree16757540ba86de9599d01536ef84b5c1a625fc79 /plugins/mod_compression.lua
parent13bfc062ef7a8e49d82538a1c4803f0dd23bd464 (diff)
downloadprosody-edd23d44518e571e9493ee8411911912ce04101e.tar.gz
prosody-edd23d44518e571e9493ee8411911912ce04101e.zip
Add FIXME to remember TLS compression detection.
Diffstat (limited to 'plugins/mod_compression.lua')
-rw-r--r--plugins/mod_compression.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index bb2a7e5d..a08be49a 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -16,7 +16,10 @@ local compression_stream_feature = st.stanza("compression", {xmlns=xmlns_compres
module:add_event_hook("stream-features",
function (session, features)
- if not session.compressed then features:add_child(compression_stream_feature); end
+ if not session.compressed then
+ --FIXME only advertise compression support when TLS layer has no compression enabled
+ features:add_child(compression_stream_feature);
+ end
end
);