aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-11-26 23:12:10 -0500
committerRapptz <[email protected]>2015-11-26 23:12:10 -0500
commit4a25011ee1d6330197e522e31c4930f9ab0eac2d (patch)
tree5fb130f740c42bd939914b8a9e92ac3514ae6a4f /discord/utils.py
parentGIF support for avatars (diff)
downloaddiscord.py-4a25011ee1d6330197e522e31c4930f9ab0eac2d.tar.xz
discord.py-4a25011ee1d6330197e522e31c4930f9ab0eac2d.zip
Revert "GIF support for avatars"
This reverts commit 9a5bb439ec9f6ab5d2fce7567452ca310736d688.
Diffstat (limited to 'discord/utils.py')
-rw-r--r--discord/utils.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/discord/utils.py b/discord/utils.py
index 74f36070..423ddc8a 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -71,7 +71,5 @@ def _get_mime_type_for_image(data):
return 'image/png'
elif data.startswith(b'\xFF\xD8') and data.endswith(b'\xFF\xD9'):
return 'image/jpeg'
- elif data.startswith(b'GIF89a') or data.startswith(b'GIF87a'):
- return 'image/gif'
else:
raise InvalidArgument('Unsupported image type given')