aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-26 22:43:11 +0100
committerGravatar jesopo2019-10-26 22:43:11 +0100
commitc4c076137da9dda609e958cec50a3ca7471a67fe (patch)
treee34cb2c7a188f1878bd572c27befcf657bc5b1c3 /modules
parentwe want both sides of the .split (diff)
signature
fallback ActivityPub data encoding to utf8
Diffstat (limited to 'modules')
-rw-r--r--modules/fediverse/ap_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fediverse/ap_utils.py b/modules/fediverse/ap_utils.py
index 412d84c1..934959e7 100644
--- a/modules/fediverse/ap_utils.py
+++ b/modules/fediverse/ap_utils.py
@@ -28,7 +28,7 @@ def activity_request(url, data=None, method="GET", type=ACTIVITY_TYPE,
request = utils.http.Request(url, headers=headers, useragent=USERAGENT,
content_type=content_type, post_data=data, method=method, json=True,
- json_body=True)
+ json_body=True, fallback_encoding="utf8")
return utils.http.request(request)
HOSTMETA_TEMPLATE = "https://%s/.well-known/host-meta"