Skip to content

Commit

Permalink
fix(cachebehavior): use buffer for copy
Browse files Browse the repository at this point in the history
  • Loading branch information
paragor committed Sep 1, 2024
1 parent f0721cd commit c002978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cachebehavior/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func ioCopy(dst io.Writer, src io.Reader) error {
if len(buffer) < bufferSize {
buffer = make([]byte, bufferSize)
}
_, err := io.CopyBuffer(dst, src, nil)
_, err := io.CopyBuffer(dst, src, buffer)
return err
}

Expand Down

0 comments on commit c002978

Please sign in to comment.