forked from mirrors/bookwyrm
Merge pull request #1578 from bookwyrm-social/improve-compatibility
Improve federation compability with Hubzilla and Zap
This commit is contained in:
commit
6e61e4d52c
1 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue