Skip to content

Commit

Permalink
use CompressionNormal on Writer.Create
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Mar 1, 2021
1 parent 8a3ed3d commit 7a1b32e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
go-version: [1.15.x, 1.16.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (w *Writer) Close() error {
// This returns a Writer to which the file contents should be written.
// The file's contents must be written to the io.Writer before the next call to Create, CreatePart, or Close.
func (w *Writer) Create(name, contentType string) (io.Writer, error) {
return w.CreatePart(&Part{Name: name, ContentType: contentType}, CompressionNone)
return w.CreatePart(&Part{Name: name, ContentType: contentType}, CompressionNormal)
}

// CreatePart adds a file to the OPC archive using the provided part.
Expand Down

0 comments on commit 7a1b32e

Please sign in to comment.