diff options
Diffstat (limited to 'weed/remote_storage/s3/tencent.go')
| -rw-r--r-- | weed/remote_storage/s3/tencent.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/weed/remote_storage/s3/tencent.go b/weed/remote_storage/s3/tencent.go index e2591ca8c..b7711b956 100644 --- a/weed/remote_storage/s3/tencent.go +++ b/weed/remote_storage/s3/tencent.go @@ -18,6 +18,10 @@ func init() { type TencentRemoteStorageMaker struct{} +func (s TencentRemoteStorageMaker) HasBucket() bool { + return true +} + func (s TencentRemoteStorageMaker) Make(conf *remote_pb.RemoteConf) (remote_storage.RemoteStorageClient, error) { client := &s3RemoteStorageClient{ conf: conf, @@ -26,9 +30,9 @@ func (s TencentRemoteStorageMaker) Make(conf *remote_pb.RemoteConf) (remote_stor secretKey := util.Nvl(conf.TencentSecretKey, os.Getenv("COS_SECRETKEY")) config := &aws.Config{ - Endpoint: aws.String(conf.TencentEndpoint), - Region: aws.String("us-west-2"), - S3ForcePathStyle: aws.Bool(true), + Endpoint: aws.String(conf.TencentEndpoint), + Region: aws.String("us-west-2"), + S3ForcePathStyle: aws.Bool(true), S3DisableContentMD5Validation: aws.Bool(true), } if accessKey != "" && secretKey != "" { |
