Merge branch 'nodeinfo-content-type' into 'develop'
Fix NodeInfo content-type See merge request pleroma/pleroma!4401
This commit is contained in:
commit
c8fc821a0e
2 changed files with 2 additions and 1 deletions
1
changelog.d/nodeinfo-content-type.fix
Normal file
1
changelog.d/nodeinfo-content-type.fix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Fix NodeInfo content-type
|
||||||
|
|
@ -36,7 +36,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController 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(node_info)
|
|> json(node_info)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue