From b97b715a44ca6507782420ee53146b552f264813 Mon Sep 17 00:00:00 2001 From: jemygraw Date: Thu, 27 Apr 2017 16:00:22 +0800 Subject: [PATCH] improve the efficiency mentioned in issue 203 --- qiniu/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qiniu/http.py b/qiniu/http.py index 5ec0d3b4..0ee27cea 100644 --- a/qiniu/http.py +++ b/qiniu/http.py @@ -20,6 +20,7 @@ def __return_wrapper(resp): if resp.status_code != 200 or resp.headers.get('X-Reqid') is None: return None, ResponseInfo(resp) + resp.encoding = 'utf-8' ret = resp.json() if resp.text != '' else {} return ret, ResponseInfo(resp)