fix: aws s3 object with leading slash

This commit is contained in:
Qiu Jian
2022-03-10 10:59:39 +08:00
parent 0bb5d074e4
commit a9c9d01dcb
+4 -1
View File
@@ -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
}