Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

zip: Fix compression method not set without SelectiveCompression enabled (closes #418) #419

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ func (z Zip) archiveOneFile(ctx context.Context, zw *zip.Writer, idx int, file F
} else {
hdr.Method = z.Compression
}
} else {
hdr.Method = z.Compression
}

w, err := zw.CreateHeader(hdr)
Expand Down
Loading