1
0
Fork 0
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2025-01-25 07:05:09 +00:00

Fix NodeInfo content-type

Fixes: https://akkoma.dev/AkkomaGang/akkoma/issues/852
This commit is contained in:
Oneric 2024-11-19 19:25:31 +01:00
parent c0a99df06a
commit 416aebb76a

View file

@ -31,7 +31,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
conn
|> put_resp_header(
"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))
end