Skip to content

Commit fe7db58

Browse files
Merge pull request #36 from frictionlessdata/fix-_zip_compression
Fiz zip compression
2 parents a7c9ea1 + 2e1fe8f commit fe7db58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

datapackage/package.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ func zipFiles(filename string, basePath string, files []string) error {
222222
if err != nil {
223223
return err
224224
}
225+
// default is Store 0 (no compression!)
226+
// see http://golang.org/pkg/archive/zip/#pkg-constants
227+
header.Method = zip.Deflate
225228
t := strings.TrimPrefix(strings.TrimPrefix(file, basePath), "/")
226229
if filepath.Dir(t) != "." {
227230
header.Name = t

0 commit comments

Comments
 (0)