Skip to content

Commit f9f2856

Browse files
committed
modify user-agent
1 parent 4fd5075 commit f9f2856

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qcloud_cos/cos_client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def send_request(self, method, url, timeout=30, **kwargs):
152152
timeout = self._conf._timeout
153153
if self._conf._token is not None:
154154
kwargs['headers']['x-cos-security-token'] = self._conf._token
155-
kwargs['headers']['User-Agent'] = 'cos-python-sdk-v5.4.1'
155+
kwargs['headers']['User-Agent'] = 'cos-python-sdk-v5.1.4.0'
156156
try:
157157
for j in range(self._retry):
158158
if method == 'POST':
@@ -826,6 +826,7 @@ def restore_object(self, Bucket, Key, RestoreRequest={}, **kwargs):
826826
auth=CosS3Auth(self._conf._secret_id, self._conf._secret_key, Key),
827827
headers=headers,
828828
params=params)
829+
print rt.headers
829830
return None
830831

831832
# s3 bucket interface begin

0 commit comments

Comments
 (0)