From 37865d02dddab827d3d016148274e462db03c9f2 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Tue, 16 Sep 2014 15:33:46 -0500 Subject: [PATCH] decode to unicode before loading in json again, for py3 This commit sponsored by Chris Cormack. Thanks! --- mediagoblin/federation/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {}} -- 2.25.1