From 2500f01fb08d993e397ab0e619fb7de11f062326 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 5 Mar 2019 12:24:29 +0100 Subject: [PATCH] Make accept the default content-type on AP/HTML routes Fixes case with Accept: */* getting AP instead of HTML Signed-off-by: Thomas Citharel --- lib/mobilizon_web/router.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mobilizon_web/router.ex b/lib/mobilizon_web/router.ex index 79f783c49..3e9fef9ec 100644 --- a/lib/mobilizon_web/router.ex +++ b/lib/mobilizon_web/router.ex @@ -23,7 +23,7 @@ defmodule MobilizonWeb.Router do end pipeline :activity_pub_and_html do - plug(:accepts, ["activity-json", "html"]) + plug(:accepts, ["html", "activity-json"]) end pipeline :rss do