forked from mirrors/gotosocial
[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:
parent
73d5766572
commit
2b11d4b7b0
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ func (t *transport) Dereference(ctx context.Context, iri *url.URL) ([]byte, erro
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
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("Accept-Charset", "utf-8")
|
||||||
req.Header.Add("User-Agent", t.controller.userAgent)
|
req.Header.Add("User-Agent", t.controller.userAgent)
|
||||||
req.Header.Set("Host", iri.Host)
|
req.Header.Set("Host", iri.Host)
|
||||||
|
|
Loading…
Reference in a new issue