mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-05 15:56:41 +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(
|
resp = requests.get(
|
||||||
url,
|
url,
|
||||||
params=params,
|
params=params,
|
||||||
headers={
|
headers={ # pylint: disable=line-too-long
|
||||||
"Accept": "application/json; charset=utf-8",
|
"Accept": (
|
||||||
|
"application/activity+json,"
|
||||||
|
' application/ld+json; profile="https://www.w3.org/ns/activitystreams",'
|
||||||
|
" application/json; charset=utf-8"
|
||||||
|
),
|
||||||
"User-Agent": settings.USER_AGENT,
|
"User-Agent": settings.USER_AGENT,
|
||||||
},
|
},
|
||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
|
|
Loading…
Reference in a new issue