Skip to content

Commit 1bfd309

Browse files
committed
Add standard annotation
1 parent 30a590f commit 1bfd309

File tree

3 files changed

+245
-47
lines changed

3 files changed

+245
-47
lines changed

qcloud_cos/cos_auth.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212

1313

1414
def filter_headers(data):
15-
"""只设置host content-type 还有x开头的头部"""
15+
"""只设置host content-type 还有x开头的头部.
16+
17+
:param data(dict): 所有的头部信息.
18+
:return(dict): 计算进签名的头部.
19+
"""
1620
headers = {}
1721
for i in data.keys():
1822
if i == 'Content-Type' or i == 'Host' or i[0] == 'x' or i[0] == 'X':

0 commit comments

Comments
 (0)