Skip to content

Commit 37fbcf4

Browse files
author
Gary Mathews
committed
Only set data descriptor when METHOD_STORED is not used
1 parent 52460a9 commit 37fbcf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/archivers/zip/zip-archive-output-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ ZipArchiveOutputStream.prototype._appendBuffer = function(ae, source, callback)
8888
};
8989

9090
ZipArchiveOutputStream.prototype._appendStream = function(ae, source, callback) {
91-
if (ae.getMethod() === constants.METHOD_DEFLATED) {
91+
if (ae.getMethod() !== constants.METHOD_STORED) {
9292
ae.getGeneralPurposeBit().useDataDescriptor(true);
9393
ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR);
9494
}

0 commit comments

Comments
 (0)