From db65b35ca38f682b286786b23ed94ba1821dca65 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Thu, 5 Jun 2025 17:11:16 -0700 Subject: [PATCH] Fix test Returns JSON when format is not supported (Pleroma.Web.WebFinger.WebFingerControllerTest) If we want to return JSON when a badly behaving client requests text/html, we still have to accept it at the Plug --- lib/pleroma/web/router.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index f2f9d7246..dfab1b216 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -189,7 +189,7 @@ defmodule Pleroma.Web.Router do end pipeline :well_known do - plug(:accepts, ["activity+json", "json", "jrd", "jrd+json", "xml", "xrd+xml"]) + plug(:accepts, ["activity+json", "json", "jrd", "jrd+json", "xml", "xrd+xml", "html"]) end pipeline :config do