Skip to content

Commit 88b38ff

Browse files
NOBLES5EShawn L.
and
Shawn L.
authored
fix: aws-chunked encoding is not supported with the specified x-amz-content-sha256 value for some s3 providers (#4575)
Co-authored-by: Shawn L. <[email protected]>
1 parent 09c50a8 commit 88b38ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/storage/s3/s3.go

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ func NewClient(ctx context.Context, s3Config *storepb.StorageS3Config) (*Client,
3232
client := s3.NewFromConfig(cfg, func(o *s3.Options) {
3333
o.BaseEndpoint = aws.String(s3Config.Endpoint)
3434
o.UsePathStyle = s3Config.UsePathStyle
35+
o.RequestChecksumCalculation = aws.RequestChecksumCalculationWhenRequired
36+
o.ResponseChecksumValidation = aws.ResponseChecksumValidationWhenRequired
3537
})
3638
return &Client{
3739
Client: client,

0 commit comments

Comments
 (0)