Browse Source

Fix NameError issue in Client.send_file.

pull/108/head
Rapptz 9 years ago
parent
commit
3ec99a7cb8
  1. 6
      discord/client.py

6
discord/client.py

@ -1064,10 +1064,8 @@ class Client:
files = aiohttp.FormData()
# we don't want the content-type json in this request
headers = {
'authorization': self.token,
'user-agent': user_agent.format(library_version, sys.version_info, aiohttp.__version__)
}
headers = self.headers.copy()
headers.pop('content-type', None)
try:
# attempt to open the file and send the request

Loading…
Cancel
Save