Skip to content

Commit

Permalink
zip: Fix compression method not set without SelectiveCompression enab…
Browse files Browse the repository at this point in the history
…led (#419)
  • Loading branch information
hevav authored Aug 21, 2024
1 parent 743ede3 commit 700715b
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 700715b

Please sign in to comment.