set content-type to application/activity+json for /actor
authorJoel Beckmeyer <joel@beckmeyer.us>
Fri, 20 Nov 2020 02:13:24 +0000 (21:13 -0500)
committerJoel Beckmeyer <joel@beckmeyer.us>
Fri, 20 Nov 2020 02:13:24 +0000 (21:13 -0500)
relay/actor.py

index 24d39dd..eb8c51b 100644 (file)
@@ -62,7 +62,7 @@ async def actor(request):
         "preferredUsername": "relay",
         "url": "https://{}/actor".format(request.host)
     }
-    return aiohttp.web.json_response(data)
+    return aiohttp.web.json_response(data, content_type='application/activity+json')
 
 
 app.router.add_get('/actor', actor)