decode to unicode before loading in json again, for py3

This commit sponsored by Chris Cormack.  Thanks!
This commit is contained in:
Christopher Allan Webber 2014-09-16 15:33:46 -05:00
parent dd41141d23
commit 37865d02dd

View File

@ -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": {}}