From 2b11d4b7b0b32c6a8d0e0b6cd109c050f3bd63cd Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 27 May 2022 21:09:57 +0200 Subject: [PATCH] [bugfix] Add `accept: application/activity+json` to dereferencer (#611) * add Accept application/activity+json to transport * add application/activity+json comma-separated --- internal/transport/dereference.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/transport/dereference.go b/internal/transport/dereference.go index 36157b673..3d252525b 100644 --- a/internal/transport/dereference.go +++ b/internal/transport/dereference.go @@ -53,7 +53,7 @@ func (t *transport) Dereference(ctx context.Context, iri *url.URL) ([]byte, erro if err != nil { return nil, err } - req.Header.Add("Accept", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") + req.Header.Add("Accept", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\",application/activity+json") req.Header.Add("Accept-Charset", "utf-8") req.Header.Add("User-Agent", t.controller.userAgent) req.Header.Set("Host", iri.Host)