decode to unicode before loading in json again, for py3
This commit sponsored by Chris Cormack. Thanks!
This commit is contained in:
parent
dd41141d23
commit
37865d02dd
@ -139,7 +139,7 @@ def feed_endpoint(request):
|
||||
return json_error("No such 'user' with id '{0}'".format(username), 404)
|
||||
|
||||
if request.data:
|
||||
data = json.loads(request.data)
|
||||
data = json.loads(request.data.decode())
|
||||
else:
|
||||
data = {"verb": None, "object": {}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user