Use Z_DEFAULT_COMPRESSION rather than Z_DEFAULT_LEVEL, it's more descriptive.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ var zlib = require('zlib'),
|
||||
common = require('./common');
|
||||
|
||||
var Session = function(options) {
|
||||
this._level = common.fetch(options, 'level', zlib.Z_DEFAULT_LEVEL);
|
||||
this._level = common.fetch(options, 'level', zlib.Z_DEFAULT_COMPRESSION);
|
||||
this._memLevel = common.fetch(options, 'memLevel', zlib.Z_DEFAULT_MEMLEVEL);
|
||||
this._strategy = common.fetch(options, 'strategy', zlib.Z_DEFAULT_STRATEGY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user