Skip to content

Commit

Permalink
not read directly in case the reader is not drained
Browse files Browse the repository at this point in the history
  • Loading branch information
caolei committed May 10, 2022
1 parent 52eccf5 commit 6670eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/oras/provider.go
Expand Up @@ -71,7 +71,7 @@ func (f *fetcherReaderAt) ReadAt(p []byte, off int64) (n int, err error) {
f.rc = rc
}

n, err = f.rc.Read(p)
n, err = io.ReadFull(f.rc, p)
if err != nil {
return n, err
}
Expand Down

0 comments on commit 6670eae

Please sign in to comment.