@@ -329,7 +329,7 @@ public ZipEntry AddStream (Stream stream, string archivePath, EntryPermissions p
329329 long index = Native . zip_file_add ( archive , destPath , source , overwriteExisting ? OperationFlags . Overwrite : OperationFlags . None ) ;
330330 if ( index < 0 )
331331 throw GetErrorException ( ) ;
332- if ( Native . zip_set_file_compression ( archive , ( ulong ) index , compressionMethod , 0 ) < 0 )
332+ if ( Native . zip_set_file_compression ( archive , ( ulong ) index , compressionMethod , 9 ) < 0 )
333333 throw GetErrorException ( ) ;
334334 if ( permissions == EntryPermissions . Default )
335335 permissions = DefaultFilePermissions ;
@@ -410,7 +410,7 @@ public ZipEntry AddFile (string sourcePath, string archivePath = null,
410410 long index = PlatformServices . Instance . StoreSpecialFile ( this , sourcePath , archivePath , out compressionMethod ) ;
411411 if ( index < 0 )
412412 throw GetErrorException ( ) ;
413- if ( Native . zip_set_file_compression ( archive , ( ulong ) index , isDir ? CompressionMethod . Store : compressionMethod , 0 ) < 0 )
413+ if ( Native . zip_set_file_compression ( archive , ( ulong ) index , isDir ? CompressionMethod . Store : compressionMethod , 9 ) < 0 )
414414 throw GetErrorException ( ) ;
415415 PlatformServices . Instance . SetEntryPermissions ( this , sourcePath , ( ulong ) index , permissions ) ;
416416 ZipEntry entry = ReadEntry ( ( ulong ) index ) ;
0 commit comments