# HG changeset patch # User Kim Alvefur # Date 1326988032 -3600 # Node ID 408c2f688e4e02646456e1567b19809452ee2434 # Parent 187ce118aea60b598f98808992dbe84441bf099c mod_compression: Change default compression level to 7 diff -r 187ce118aea6 -r 408c2f688e4e plugins/mod_compression.lua --- 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));