Skip to content

Commit ff0b0dc

Browse files
committed
Change ZipFile.TestLocalHeader to check CompressionMethodForHeader rather than CompressionMethod. refs #317.
1 parent 803b4a2 commit ff0b0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ private long TestLocalHeader(ZipEntry entry, HeaderTest tests)
12151215
}
12161216

12171217
// Central header compression method matches local entry
1218-
if (entry.CompressionMethod != (CompressionMethod)compressionMethod)
1218+
if (entry.CompressionMethodForHeader != (CompressionMethod)compressionMethod)
12191219
{
12201220
throw new ZipException("Central header/local header compression method mismatch");
12211221
}

0 commit comments

Comments
 (0)