diff --git a/adm-zip.js b/adm-zip.js index eb9c6ee..c3bebf3 100644 --- a/adm-zip.js +++ b/adm-zip.js @@ -46,7 +46,6 @@ module.exports = function (/**String*/ input, /** object */ options) { // instanciate utils filesystem const filetools = new Utils(opts); - opts.decoder = Utils.decoder; if (typeof opts.decoder !== "object" || typeof opts.decoder.encode !== "function" || typeof opts.decoder.decode !== "function") { opts.decoder = Utils.decoder; } diff --git a/zipEntry.js b/zipEntry.js index 51c44a2..c2cae53 100644 --- a/zipEntry.js +++ b/zipEntry.js @@ -339,7 +339,7 @@ module.exports = function (/** object */ options, /*Buffer*/ input) { }, packCentralHeader: function () { - _centralHeader.flag_efs = this.efs; + _centralHeader.flags_efs = this.efs; // 1. create header (buffer) var header = _centralHeader.centralHeaderToBinary(); var addpos = Utils.Constants.CENHDR; @@ -360,7 +360,7 @@ module.exports = function (/** object */ options, /*Buffer*/ input) { packLocalHeader: function () { let addpos = 0; - + _centralHeader.flags_efs = this.efs; // 1. construct local header Buffer const localHeaderBuf = _centralHeader.localHeaderToBinary(); // 2. localHeader - crate header buffer