2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Changed compression level to Z_DEFAULT_COMPRESSION.
	* src/GZipEncoder.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-01-23 09:24:56 +00:00
parent 7e6cdae00b
commit 2eb26c2513
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed compression level to Z_DEFAULT_COMPRESSION.
* src/GZipEncoder.cc
2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added missing command line options: --http-no-cache,

View File

@ -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.");
}
}