From 000794f7f05d7dfa2d3c07d1a23460a48fd61157 Mon Sep 17 00:00:00 2001 From: tiedu Date: Tue, 8 May 2018 17:21:12 +0800 Subject: [PATCH] modify UA to 5.1.5.0 --- qcloud_cos/cos_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcloud_cos/cos_client.py b/qcloud_cos/cos_client.py index 2fc714c9..e3cbcf29 100644 --- a/qcloud_cos/cos_client.py +++ b/qcloud_cos/cos_client.py @@ -149,7 +149,7 @@ def send_request(self, method, url, timeout=30, **kwargs): timeout = self._conf._timeout if self._conf._token is not None: kwargs['headers']['x-cos-security-token'] = self._conf._token - kwargs['headers']['User-Agent'] = 'cos-python-sdk-v5.1.4.1' + kwargs['headers']['User-Agent'] = 'cos-python-sdk-v5.1.5.0' kwargs['headers'] = format_values(kwargs['headers']) if 'data' in kwargs: kwargs['data'] = to_bytes(kwargs['data'])