pull/527/head
lijiaxing 2023-12-06 15:24:57 +08:00
parent ff62cf2a7c
commit d0d39fa3ef
1 changed files with 2 additions and 2 deletions

View File

@ -512,7 +512,7 @@ class VolcClient(StorageClient):
"using environment variable!", "using environment variable!",
) from exc ) from exc
self.client = self.handler.TosClientV2(access_key, secret_key, endpoint, region) self.client = self.handler.TosClientV2(access_key, secret_key, endpoint, region, enable_crc=False)
@staticmethod @staticmethod
def sync_upload_fileobj(handler, bucket_name: str, fp: str, saved_obj=None, **kwargs): def sync_upload_fileobj(handler, bucket_name: str, fp: str, saved_obj=None, **kwargs):
@ -698,7 +698,7 @@ class AliClient(StorageClient):
) from exc ) from exc
self.auth = self.handler.Auth(access_key, secret_key) self.auth = self.handler.Auth(access_key, secret_key)
self.client = self.handler.Bucket(self.auth, endpoint, bucket_name) self.client = self.handler.Bucket(self.auth, endpoint, bucket_name, enable_crc=False)
@staticmethod @staticmethod
def sync_upload_fileobj(handler, fp: str, saved_obj=None, **kwargs): def sync_upload_fileobj(handler, fp: str, saved_obj=None, **kwargs):