forked from AkkomaGang/akkoma
Merge pull request 'Fix NodeInfo content-type' (#853) from Oneric/akkoma:nodeinfo-contenttype into develop
Reviewed-on: AkkomaGang/akkoma#853
This commit is contained in:
commit
89d209f486
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def nodeinfo(conn, %{"version" => version}) when version in ["2.0", "2.1"] do
|
||||||
conn
|
conn
|
||||||
|> put_resp_header(
|
|> put_resp_header(
|
||||||
"content-type",
|
"content-type",
|
||||||
"application/json; profile=http://nodeinfo.diaspora.software/ns/schema/2.0#; charset=utf-8"
|
"application/json; profile=\"http://nodeinfo.diaspora.software/ns/schema/#{version}#\"; charset=utf-8"
|
||||||
)
|
)
|
||||||
|> json(Nodeinfo.get_nodeinfo(version))
|
|> json(Nodeinfo.get_nodeinfo(version))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue