Software /
code /
prosody-modules
Changeset
2794:d42e9da671fd
mod_compression_unsafe: Offer compression to c2s_unbound sessions (fixes compat with 0.10, thanks Flow)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 11 Oct 2017 13:55:00 +0100 |
parents | 2793:4b7e6c01aa1c |
children | 2795:226693a22fc9 |
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 09:24:55 2017 +0100 +++ b/mod_compression_unsafe/mod_compression_unsafe.lua Wed Oct 11 13:55:00 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" then + if not origin.compressed and origin.type == "c2s" or origin.type == "c2s_unbound" then features:add_child(compression_stream_feature); end end);