Skip to content

Commit 1b1b472

Browse files
author
libertyzhu
committed
format response of head_bucket
1 parent 0dbe857 commit 1b1b472

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qcloud_cos/cos_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,9 @@ def head_bucket(self, Bucket, **kwargs):
16781678
bucket=Bucket,
16791679
auth=CosS3Auth(self._conf),
16801680
headers=headers)
1681-
return rt.headers
1681+
1682+
response = dict(**rt.headers)
1683+
return response
16821684

16831685
def put_bucket_acl(self, Bucket, AccessControlPolicy={}, **kwargs):
16841686
"""设置bucket ACL

0 commit comments

Comments
 (0)