aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-05-10 19:51:59 -0400
committerRapptz <[email protected]>2016-05-10 19:52:34 -0400
commit0c8d5ee863ae6968d0ca4504e9d8dd166e1a6419 (patch)
tree9d60d973050bf2bdf31030caa843938e4e862694 /discord/gateway.py
parentFix issue with Client.purge_from not deleting the 101st message. (diff)
downloaddiscord.py-0c8d5ee863ae6968d0ca4504e9d8dd166e1a6419.tar.xz
discord.py-0c8d5ee863ae6968d0ca4504e9d8dd166e1a6419.zip
Force encoding of text retrieval functions to use utf-8.
Closes #207
Diffstat (limited to 'discord/gateway.py')
-rw-r--r--discord/gateway.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index 5ecf58ce..c3c00383 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -120,7 +120,7 @@ def get_gateway(token, *, loop=None):
if resp.status != 200:
yield from resp.release()
raise GatewayNotFound()
- data = yield from resp.json()
+ data = yield from resp.json(encoding='utf-8')
return data.get('url')
class DiscordWebSocket(websockets.client.WebSocketClientProtocol):