Return the right content-type for the schema call
authorDashie <dashie@sigpipe.me>
Thu, 3 May 2018 08:50:02 +0000 (10:50 +0200)
committerDashie <dashie@sigpipe.me>
Thu, 3 May 2018 08:50:02 +0000 (10:50 +0200)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index bf845a4424e32e4fe628abff0a7826851f4ac464..534a858ae95ae70433bb8db6266a4f9cb1d6d787 100644 (file)
@@ -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