Merge pull request #2800 from WesleyAC/fix-activitypub-request-accept-header

Fix Accept header for requesting ActivityPub objects
This commit is contained in:
Wesley Aptekar-Cassels 2023-04-08 11:02:27 -04:00 committed by GitHub
commit e9f26b7d50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -384,7 +384,8 @@ def get_activitypub_data(url):
resp = requests.get(
url,
headers={
"Accept": "application/json; charset=utf-8",
# pylint: disable=line-too-long
"Accept": 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
"Date": now,
"Signature": make_signature("get", sender, url, now),
},