Merge branch 'master' into 'master'
set content-type to application/activity+json for /actor See merge request pleroma/relay!24
This commit is contained in:
commit
8b4ef87eba
|
@ -62,7 +62,7 @@ async def actor(request):
|
||||||
"preferredUsername": "relay",
|
"preferredUsername": "relay",
|
||||||
"url": "https://{}/actor".format(request.host)
|
"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)
|
app.router.add_get('/actor', actor)
|
||||||
|
|
Loading…
Reference in New Issue