Skip to content

Commit bff58c4

Browse files
authored
Merge pull request #104 from agin719/master
update upload part return
2 parents 8156f18 + 895c129 commit bff58c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qcloud_cos/cos_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,7 @@ def upload_part(self, Bucket, Key, Body, PartNumber, UploadId, EnableMD5=False,
707707
params=params,
708708
auth=CosS3Auth(self._conf, Key, params=params),
709709
data=Body)
710-
response = dict()
711-
response['ETag'] = rt.headers['ETag']
710+
response = dict(**rt.headers)
712711
return response
713712

714713
def complete_multipart_upload(self, Bucket, Key, UploadId, MultipartUpload={}, **kwargs):

0 commit comments

Comments
 (0)