mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix: aws s3 object with leading slash
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user