Return the right content-type for the schema call

This commit is contained in:
Dashie 2018-05-03 10:50:02 +02:00
parent e448734952
commit 804497542d
No known key found for this signature in database
GPG Key ID: C2D57B325840B755

View File

@ -43,7 +43,12 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
metadata: %{} 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 end
def nodeinfo(conn, _) do def nodeinfo(conn, _) do