Merge pull request #1578 from bookwyrm-social/improve-compatibility

Improve federation compability with Hubzilla and Zap
This commit is contained in:
Mouse Reeve 2021-12-09 11:06:04 -08:00 committed by GitHub
commit 6e61e4d52c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,8 +254,12 @@ def get_data(url, params=None, timeout=10):
resp = requests.get(
url,
params=params,
headers={
"Accept": "application/json; charset=utf-8",
headers={ # pylint: disable=line-too-long
"Accept": (
"application/activity+json,"
' application/ld+json; profile="https://www.w3.org/ns/activitystreams",'
" application/json; charset=utf-8"
),
"User-Agent": settings.USER_AGENT,
},
timeout=timeout,