Skip to content

Commit

Permalink
Read part content use option ReadPartErrorPolicy. (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
YongBin Li authored Mar 9, 2023
1 parent 564f418 commit 87c0655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion part.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func (p *Part) decodeContent(r io.Reader, readPartErrorPolicy ReadPartErrorPolic
}
}
// Decode and store content.
content, err := ioutil.ReadAll(contentReader)
content, err := p.readPartContent(contentReader, readPartErrorPolicy)
if err != nil {
return p.base64CorruptInputCheck(errors.WithStack(err))
}
Expand Down

0 comments on commit 87c0655

Please sign in to comment.