diff options
Diffstat (limited to 'src/ejabberd_http.erl')
-rw-r--r-- | src/ejabberd_http.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ejabberd_http.erl b/src/ejabberd_http.erl index 0af7adc37..899d50eb3 100644 --- a/src/ejabberd_http.erl +++ b/src/ejabberd_http.erl @@ -96,7 +96,11 @@ init({SockMod, Socket}, Opts) -> (_) -> false end, Opts), - TLSOpts = [verify_none | TLSOpts1], + TLSOpts2 = case proplists:get_bool(tls_compression, Opts) of + false -> [compression_none | TLSOpts1]; + true -> TLSOpts1 + end, + TLSOpts = [verify_none | TLSOpts2], {SockMod1, Socket1} = if TLSEnabled -> inet:setopts(Socket, [{recbuf, 8192}]), {ok, TLSSocket} = p1_tls:tcp_to_tls(Socket, |