From 895c1291edb6c86ec8f967251a97788441c566f7 Mon Sep 17 00:00:00 2001 From: jojoliang Date: Mon, 2 Dec 2019 21:13:53 +0800 Subject: [PATCH] update upload part return --- qcloud_cos/cos_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcloud_cos/cos_client.py b/qcloud_cos/cos_client.py index 369583fc..8b782a38 100644 --- a/qcloud_cos/cos_client.py +++ b/qcloud_cos/cos_client.py @@ -707,8 +707,7 @@ def upload_part(self, Bucket, Key, Body, PartNumber, UploadId, EnableMD5=False, params=params, auth=CosS3Auth(self._conf, Key, params=params), data=Body) - response = dict() - response['ETag'] = rt.headers['ETag'] + response = dict(**rt.headers) return response def complete_multipart_upload(self, Bucket, Key, UploadId, MultipartUpload={}, **kwargs):