We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 654df74 + b97b715 commit 90fda97Copy full SHA for 90fda97
qiniu/http.py
@@ -20,6 +20,7 @@
20
def __return_wrapper(resp):
21
if resp.status_code != 200 or resp.headers.get('X-Reqid') is None:
22
return None, ResponseInfo(resp)
23
+ resp.encoding = 'utf-8'
24
ret = resp.json() if resp.text != '' else {}
25
return ret, ResponseInfo(resp)
26
0 commit comments