We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7bafe5 commit 4dad6d5Copy full SHA for 4dad6d5
oss2/models.py
@@ -9,7 +9,7 @@
9
10
from .utils import http_to_unixtime, make_progress_adapter, make_crc_adapter
11
from .exceptions import ClientError, InconsistentError
12
-from .compat import urlunquote
+from .compat import urlunquote, to_string
13
from .headers import *
14
import json
15
@@ -840,7 +840,7 @@ def __init__(self, resp):
840
self.fileSize = 0
841
self.object = ""
842
self.process_status = ""
843
- result = json.loads(resp.read())
+ result = json.loads(to_string(resp.read()))
844
if 'bucket' in result:
845
self.bucket = result['bucket']
846
if 'fileSize' in result:
0 commit comments