Skip to content

Commit 120dde3

Browse files
make test more strict
1 parent b4a43b4 commit 120dde3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/zip-writer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ function getHeaderInfo(options) {
787787
if (compressionMethod === UNDEFINED_VALUE) {
788788
compressionMethod = compressed ? COMPRESSION_METHOD_DEFLATE : COMPRESSION_METHOD_STORE;
789789
}
790-
if (compressed) {
790+
if (compressionMethod == COMPRESSION_METHOD_DEFLATE) {
791791
if (level >= 1 && level < 3) {
792792
bitFlag = bitFlag | 0b110;
793793
}

0 commit comments

Comments
 (0)