Skip to content

Commit

Permalink
Fix Accept header for requesting ActivityPub objects
Browse files Browse the repository at this point in the history
This is the header described in the ActivityPub spec, which should fix
some federation problems with GoToSocial and potentially other picky
services.

Related: bookwyrm-social#2794
  • Loading branch information
WesleyAC committed Apr 7, 2023
1 parent 4b1012b commit bcc3e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bookwyrm/activitypub/base_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def get_activitypub_data(url):
resp = requests.get(
url,
headers={
"Accept": "application/json; charset=utf-8",
"Accept": 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
"Date": now,
"Signature": make_signature("get", sender, url, now),
},
Expand Down

0 comments on commit bcc3e55

Please sign in to comment.