data -> post_data

This commit is contained in:
jesopo 2019-09-15 15:21:26 +01:00
parent 4f1f65919d
commit 433e3cdcfb

View file

@ -24,7 +24,7 @@ def activity_request(url, data=None, method="GET", type=ACTIVITY_TYPE,
headers = {"Accept": type} headers = {"Accept": type}
request = utils.http.Request(url, headers=headers, useragent=USERAGENT, request = utils.http.Request(url, headers=headers, useragent=USERAGENT,
content_type=content_type, data=data, json=True, method=method) content_type=content_type, post_data=data, json=True, method=method)
return utils.http.request(request).data return utils.http.request(request).data
HOSTMETA_TEMPLATE = "https://%s/.well-known/host-meta" HOSTMETA_TEMPLATE = "https://%s/.well-known/host-meta"