diff options
author | Dashie <dashie@sigpipe.me> | 2018-05-03 10:50:02 +0200 |
---|---|---|
committer | Dashie <dashie@sigpipe.me> | 2018-05-03 10:50:02 +0200 |
commit | 804497542d8a0488b697bca1547e3f564e308a2e (patch) | |
tree | 01c834b97becb87111dd4c03761d15177f0a3c48 /lib | |
parent | e448734952088fb15b5d2f3be6c27041a6ba7efc (diff) | |
download | pleroma-804497542d8a0488b697bca1547e3f564e308a2e.tar.gz |
Return the right content-type for the schema call
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/nodeinfo/nodeinfo_controller.ex | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex b/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex index bf845a442..534a858ae 100644 --- a/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex +++ b/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex @@ -43,7 +43,12 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do metadata: %{} } - json(conn, response) + conn + |> put_resp_header( + "content-type", + "application/json; profile=http://nodeinfo.diaspora.software/ns/schema/2.0#; charset=utf-8" + ) + |> json(response) end def nodeinfo(conn, _) do |