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)
|
return json_error("No such 'user' with id '{0}'".format(username), 404)
|
||||||
|
|
||||||
if request.data:
|
if request.data:
|
||||||
data = json.loads(request.data)
|
data = json.loads(request.data.decode())
|
||||||
else:
|
else:
|
||||||
data = {"verb": None, "object": {}}
|
data = {"verb": None, "object": {}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user