mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-04 15:26:48 +00:00
Improve federation compability with Hubzilla and Zap
Co-authored-by: hubzilla <redmatrix@users.noreply.github.com> Fixes #1564
This commit is contained in:
parent
6ba605cbd0
commit
8ba875af4a
1 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue