Skip to content

Commit c0aa969

Browse files
committed
fix copy
1 parent 288372e commit c0aa969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qcloud_cos/cos_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2390,7 +2390,7 @@ def copy(self, Bucket, Key, CopySource, CopyStatus='Copy', PartSize=10, MAXThrea
23902390
)
23912391
"""
23922392
# 同园区直接走copy_object
2393-
if self._check_same_region(self._conf._endpoint, CopySource):
2393+
if self._check_same_region(self._conf._endpoint, CopySource) and 'StorageClass' not in kwargs:
23942394
response = self.copy_object(Bucket=Bucket, Key=Key, CopySource=CopySource, CopyStatus=CopyStatus, **kwargs)
23952395
return response
23962396

0 commit comments

Comments
 (0)