Software /
code /
prosody
Diff
plugins/mod_compression.lua @ 4481:408c2f688e4e
mod_compression: Change default compression level to 7
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 19 Jan 2012 16:47:12 +0100 |
parent | 4480:187ce118aea6 |
child | 4898:010c01841ed0 |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Thu Jan 19 16:38:04 2012 +0100 +++ b/plugins/mod_compression.lua Thu Jan 19 16:47:12 2012 +0100 @@ -16,7 +16,7 @@ local compression_stream_feature = st.stanza("compression", {xmlns=xmlns_compression_feature}):tag("method"):text("zlib"):up(); local add_filter = require "util.filters".add_filter; -local compression_level = module:get_option_number("compression_level", 9); +local compression_level = module:get_option_number("compression_level", 7); if not compression_level or compression_level < 1 or compression_level > 9 then module:log("warn", "Invalid compression level in config: %s", tostring(compression_level));