1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Removed headers from the session, as that wasn't needed

This commit is contained in:
Phxntxm 2016-08-13 21:57:34 -05:00
parent 82709c9b5f
commit ff82f250d3

View file

@ -22,7 +22,7 @@ class Strawpoll:
self.url = 'https://strawpoll.me/api/v2/polls'
self.headers = {'User-Agent': 'Bonfire/1.0.0',
'Content-Type': 'application/json'}
self.session = aiohttp.ClientSession(headers=headers)
self.session = aiohttp.ClientSession()
def __unload(self):
self.bot.loop.create_task(self.session.close())