Skip to content

Commit 90fda97

Browse files
authored
Merge pull request #261 from jemygraw/master
improve the efficiency mentioned in issue 203
2 parents 654df74 + b97b715 commit 90fda97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qiniu/http.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
def __return_wrapper(resp):
2121
if resp.status_code != 200 or resp.headers.get('X-Reqid') is None:
2222
return None, ResponseInfo(resp)
23+
resp.encoding = 'utf-8'
2324
ret = resp.json() if resp.text != '' else {}
2425
return ret, ResponseInfo(resp)
2526

0 commit comments

Comments
 (0)