From: Christopher Allan Webber Date: Tue, 16 Sep 2014 20:33:46 +0000 (-0500) Subject: decode to unicode before loading in json again, for py3 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=37865d02dddab827d3d016148274e462db03c9f2;p=mediagoblin.git decode to unicode before loading in json again, for py3 This commit sponsored by Chris Cormack. Thanks! --- diff --git a/mediagoblin/federation/views.py b/mediagoblin/federation/views.py index 3d6953a7..cff33224 100644 --- a/mediagoblin/federation/views.py +++ b/mediagoblin/federation/views.py @@ -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": {}}