Mercurial > prosody-modules
changeset 2795:226693a22fc9
mod_compression_unsafe: Fix logic bug in previous commit
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 11 Oct 2017 13:56:03 +0100 |
parents | d42e9da671fd |
children | 6a7b7cb7148e |
files | mod_compression_unsafe/mod_compression_unsafe.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_compression_unsafe/mod_compression_unsafe.lua Wed Oct 11 13:55:00 2017 +0100 +++ b/mod_compression_unsafe/mod_compression_unsafe.lua Wed Oct 11 13:56:03 2017 +0100 @@ -26,7 +26,7 @@ module:hook("stream-features", function(event) local origin, features = event.origin, event.features; - if not origin.compressed and origin.type == "c2s" or origin.type == "c2s_unbound" then + if not origin.compressed and (origin.type == "c2s" or origin.type == "c2s_unbound") then features:add_child(compression_stream_feature); end end);