Changeset

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
parents 4480:187ce118aea6
children 4482:722cf2680028 4485:abfd27b59fa8 4531:c778ce7e3c78
files plugins/mod_compression.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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));