Skip to content

Commit 3271fc7

Browse files
authored
Merge pull request #6373 from crazy-max/s3-fix-config
cache(s3): request checksum calculation when required
2 parents 9cf5375 + ccf4af8 commit 3271fc7

File tree

1 file changed

+4
-1
lines changed
  • cache/remotecache/s3

1 file changed

+4
-1
lines changed

cache/remotecache/s3/s3.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,10 @@ type s3Client struct {
404404
}
405405

406406
func newS3Client(ctx context.Context, config Config) (*s3Client, error) {
407-
cfg, err := aws_config.LoadDefaultConfig(ctx, aws_config.WithRegion(config.Region))
407+
cfg, err := aws_config.LoadDefaultConfig(ctx,
408+
aws_config.WithRegion(config.Region),
409+
aws_config.WithRequestChecksumCalculation(aws.RequestChecksumCalculationWhenRequired),
410+
)
408411
if err != nil {
409412
return nil, errors.Errorf("Unable to load AWS SDK config, %v", err)
410413
}

0 commit comments

Comments
 (0)