Skip to content

Commit

Permalink
zippkg: specify deflate compression
Browse files Browse the repository at this point in the history
If you don't specify deflate, it defaults to store only.
  • Loading branch information
tbaliance committed Sep 2, 2017
1 parent d186678 commit 84c4983
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zippkg/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var nl = []byte{'\r', '\n'}
// with a standard XML header.
func MarshalXML(z *zip.Writer, filename string, v interface{}) error {
fh := &zip.FileHeader{}
fh.Method = zip.Deflate
fh.Name = filename
fh.SetModTime(time.Now())

Expand Down

0 comments on commit 84c4983

Please sign in to comment.