From 804497542d8a0488b697bca1547e3f564e308a2e Mon Sep 17 00:00:00 2001 From: Dashie Date: Thu, 3 May 2018 10:50:02 +0200 Subject: [PATCH] Return the right content-type for the schema call --- lib/pleroma/web/nodeinfo/nodeinfo_controller.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 @@ def nodeinfo(conn, %{"version" => "2.0"}) 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