https://reisub.nsupdate.info/git
/
relay.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b11d05
)
remote actor: force utf-8 encoding
author
William Pitcock
<nenolod@dereferenced.org>
Sat, 11 Aug 2018 15:20:56 +0000
(10:20 -0500)
committer
William Pitcock
<nenolod@dereferenced.org>
Sat, 11 Aug 2018 15:20:56 +0000
(10:20 -0500)
viera/remote_actor.py
patch
|
blob
|
history
diff --git
a/viera/remote_actor.py
b/viera/remote_actor.py
index
14d2db3
..
28e49b7
100644
(file)
--- a/
viera/remote_actor.py
+++ b/
viera/remote_actor.py
@@
-9,6
+9,6
@@
async def fetch_actor(uri, force=False):
async with aiohttp.ClientSession() as session:
async with session.get(uri, headers={'Accept': 'application/activity+json'}) as resp:
- ACTORS[uri] = (await resp.json(content_type=None))
+ ACTORS[uri] = (await resp.json(
encoding='utf-8',
content_type=None))
DATABASE["actors"] = ACTORS
return ACTORS[uri]