Skip to content

Commit ad9ff7c

Browse files
authored
Update deprecated CreateHeaderRaw to correctly call CreateRaw (#502)
1 parent 910cf16 commit ad9ff7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zip/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ func min64(x, y uint64) uint64 {
438438

439439
// Deprecated: CreateHeaderRaw is replaced by CreateRaw (stdlib name).
440440
func (w *Writer) CreateHeaderRaw(fh *FileHeader) (io.Writer, error) {
441-
return w.CreateHeader(fh)
441+
return w.CreateRaw(fh)
442442
}
443443

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

0 commit comments

Comments
 (0)