From: Dashie Date: Thu, 3 May 2018 08:50:02 +0000 (+0200) Subject: Return the right content-type for the schema call X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=804497542d8a0488b697bca1547e3f564e308a2e;p=akkoma Return the right content-type for the schema call --- 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