Skip to content

Commit d9b97dd

Browse files
author
Justin Yip
committed
Merge pull request apache#12 from marcovivero/develop
Added utf8 decoding on json.loads, script : connection.py, line: 156
2 parents 7b66a7a + 9386a78 commit d9b97dd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.DS_Store

6 KB
Binary file not shown.

predictionio/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def set_resp(self, version, status, reason, headers, body):
152152
self.body = body
153153
# Try to extract the json.
154154
try:
155-
self.json_body = json.loads(body)
155+
self.json_body = json.loads(body.decode('utf8'))
156156
except ValueError as ex:
157157
self.json_body = None
158158

0 commit comments

Comments
 (0)