use json_body=True
for ActivityPub requests
This commit is contained in:
parent
47735421b8
commit
050bf0a848
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ def activity_request(url, data=None, method="GET", type=ACTIVITY_TYPE,
|
|||
headers = {"Accept": type}
|
||||
|
||||
request = utils.http.Request(url, headers=headers, useragent=USERAGENT,
|
||||
content_type=content_type, post_data=data, json=True, method=method)
|
||||
content_type=content_type, post_data=data, method=method, json=True,
|
||||
json_body=True)
|
||||
return utils.http.request(request).data
|
||||
|
||||
HOSTMETA_TEMPLATE = "https://%s/.well-known/host-meta"
|
||||
|
|
Loading…
Reference in a new issue