From 334a2502b86af0179566befe184e041a46d1f518 Mon Sep 17 00:00:00 2001 From: me Date: Thu, 31 Oct 2024 15:44:52 +0200 Subject: [PATCH] fix content type accept --- src/Fedi/Routes.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fedi/Routes.hs b/src/Fedi/Routes.hs index 27796c5..e105b1d 100644 --- a/src/Fedi/Routes.hs +++ b/src/Fedi/Routes.hs @@ -180,7 +180,7 @@ checkContentTypeAccept request = case lookup Twain.hAccept request.requestHeaders of Just bs -> ("application/activity+json" `BS.isInfixOf` bs) - || ( ("application/activity+json" `BS.isInfixOf` bs) + || ( ("application/ld+json" `BS.isInfixOf` bs) && ("profile=\"https://www.w3.org/ns/activitystreams\"" `BS.isInfixOf` bs) ) Nothing -> False