From a9c9d01dcb8f3fac5b408cd2caadb922e6fd3ca6 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Thu, 10 Mar 2022 10:59:39 +0800 Subject: [PATCH] fix: aws s3 object with leading slash --- pkg/multicloud/aws/region.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/multicloud/aws/region.go b/pkg/multicloud/aws/region.go index f88851e923..696353156a 100644 --- a/pkg/multicloud/aws/region.go +++ b/pkg/multicloud/aws/region.go @@ -202,7 +202,10 @@ func (self *SRegion) GetS3Client() (*s3.S3, error) { if err != nil { return nil, errors.Wrap(err, "getAwsSession") } - self.s3Client = s3.New(s) + self.s3Client = s3.New(s, + &aws.Config{ + DisableRestProtocolURICleaning: aws.Bool(true), + }) } return self.s3Client, nil }