mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Fix Accept headers when fetching AP objects to match spec (#30354)
This commit is contained in:
@@ -44,7 +44,7 @@ class ActivityPub::Dereferencer
|
||||
|
||||
req = Request.new(:get, uri)
|
||||
|
||||
req.add_headers('Accept' => 'application/activity+json, application/ld+json')
|
||||
req.add_headers('Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams", application/activity+json')
|
||||
req.add_headers(headers) if headers
|
||||
req.on_behalf_of(@signature_actor) if @signature_actor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user