Skip to content

Commit

Permalink
Update deprecated CreateHeaderRaw to correctly call CreateRaw (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
saracen committed Feb 22, 2022
1 parent 910cf16 commit ad9ff7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zip/writer.go
Expand Up @@ -438,7 +438,7 @@ func min64(x, y uint64) uint64 {

// Deprecated: CreateHeaderRaw is replaced by CreateRaw (stdlib name).
func (w *Writer) CreateHeaderRaw(fh *FileHeader) (io.Writer, error) {
return w.CreateHeader(fh)
return w.CreateRaw(fh)
}

// CreateRaw adds a file to the zip archive using the provided FileHeader and
Expand Down

0 comments on commit ad9ff7c

Please sign in to comment.