forked from AkkomaGang/akkoma
Return the right content-type for the schema call
This commit is contained in:
parent
e448734952
commit
804497542d
1 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,12 @@ def nodeinfo(conn, %{"version" => "2.0"}) 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
|
||||||
|
|
Loading…
Reference in a new issue