From 2eb26c2513894789c713ae335faf1091381a8c04 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 23 Jan 2010 09:24:56 +0000 Subject: [PATCH] 2010-01-23 Tatsuhiro Tsujikawa Changed compression level to Z_DEFAULT_COMPRESSION. * src/GZipEncoder.cc --- ChangeLog | 5 +++++ src/GZipEncoder.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8e4aebb3..31d85944 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-23 Tatsuhiro Tsujikawa + + Changed compression level to Z_DEFAULT_COMPRESSION. + * src/GZipEncoder.cc + 2010-01-23 Tatsuhiro Tsujikawa Added missing command line options: --http-no-cache, diff --git a/src/GZipEncoder.cc b/src/GZipEncoder.cc index 0f605b66..9f205b0a 100644 --- a/src/GZipEncoder.cc +++ b/src/GZipEncoder.cc @@ -64,7 +64,8 @@ void GZipEncoder::init() _strm->avail_in = 0; _strm->next_in = Z_NULL; - if(Z_OK != deflateInit2(_strm, 9, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY)) { + if(Z_OK != deflateInit2 + (_strm, Z_DEFAULT_COMPRESSION, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY)) { throw DL_ABORT_EX("Initializing z_stream failed."); } }