projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e448734
)
Return the right content-type for the schema call
author
Dashie
<dashie@sigpipe.me>
Thu, 3 May 2018 08:50:02 +0000
(10:50 +0200)
committer
Dashie
<dashie@sigpipe.me>
Thu, 3 May 2018 08:50:02 +0000
(10:50 +0200)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
b/lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
index bf845a4424e32e4fe628abff0a7826851f4ac464..534a858ae95ae70433bb8db6266a4f9cb1d6d787 100644
(file)
--- a/
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
+++ b/
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
@@
-43,7
+43,12
@@
defmodule Pleroma.Web.Nodeinfo.NodeinfoController 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