gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2b11d4b7b0b32c6a8d0e0b6cd109c050f3bd63cd
parent 73d5766572eb12c2f728bcce96013ffc67151ba9
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date:   Fri, 27 May 2022 21:09:57 +0200

[bugfix] Add `accept: application/activity+json` to dereferencer (#611)

* add Accept application/activity+json to transport

* add application/activity+json comma-separated
Diffstat:
Minternal/transport/dereference.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)