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

* add Accept application/activity+json to transport

* add application/activity+json comma-separated
This commit is contained in:
tobi 2022-05-27 21:09:57 +02:00 committed by GitHub
parent 73d5766572
commit 2b11d4b7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)