Skip to content

Commit 084c89b

Browse files
authored
Merge pull request #31 from Liuchang0812/patch-1
Create cos_op.py
2 parents a174da0 + 0d5296f commit 084c89b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qcloud_cos/cos_op.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def send_request(self, method, bucket, cos_path, **kwargs):
103103
http_resp = self._http_session.get(url, verify=False, **kwargs)
104104

105105
status_code = http_resp.status_code
106-
if status_code == 200 or status_code == 400:
106+
if status_code < 500:
107107
return http_resp.json()
108108
else:
109109
logger.warning("request failed, response message: %s" % http_resp.text)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
sys.exit('Sorry, only python 2.6 or 2.7 is supported')
99

1010
setup(name='qcloud_cos_v4',
11-
version='0.0.18',
11+
version='0.0.19',
1212
description='python sdk for tencent qcloud cos v4.0',
1313
long_description=open('README.rst', 'r').read(),
1414
license='MIT License',

0 commit comments

Comments
 (0)