aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDashie <dashie@sigpipe.me>2018-05-03 10:50:02 +0200
committerDashie <dashie@sigpipe.me>2018-05-03 10:50:02 +0200
commit804497542d8a0488b697bca1547e3f564e308a2e (patch)
tree01c834b97becb87111dd4c03761d15177f0a3c48
parente448734952088fb15b5d2f3be6c27041a6ba7efc (diff)
downloadpleroma-804497542d8a0488b697bca1547e3f564e308a2e.tar.gz
Return the right content-type for the schema call
-rw-r--r--lib/pleroma/web/nodeinfo/nodeinfo_controller.ex7
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