Improve federation compability with Hubzilla and Zap

Co-authored-by: hubzilla <redmatrix@users.noreply.github.com>
Fixes #1564
This commit is contained in:
Mouse Reeve 2021-10-26 14:37:43 -07:00
parent 6ba605cbd0
commit 8ba875af4a

View file

@ -227,8 +227,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,