webfinger: send JRD by default instead of XRD
authorWilliam Pitcock <nenolod@dereferenced.org>
Wed, 13 Jun 2018 06:56:14 +0000 (06:56 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 13 Jun 2018 07:03:14 +0000 (07:03 +0000)
JRD being the default representation for WebFinger responses was standardized 5 years ago in
RFC 7033.

lib/pleroma/web/router.ex

index ee6a373d3ed27b1222b7d20817d74c0b9266ae04..0e6369147652982072500b8e4c39d6ff40cd178a 100644 (file)
@@ -41,7 +41,7 @@ defmodule Pleroma.Web.Router do
   end
 
   pipeline :well_known do
-    plug(:accepts, ["xml", "xrd+xml", "json", "jrd+json"])
+    plug(:accepts, ["json", "jrd+json", "xml", "xml+xrd"])
   end
 
   pipeline :config do