Verified Commit 80449754 authored by dashie's avatar dashie
Browse files

Return the right content-type for the schema call

parent e4487349
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment