fx: disable checking mime type in get_json

looking at you, CoinDesk..
This commit is contained in:
SomberNight 2018-09-15 00:30:43 +02:00
parent f38ec93ae9
commit 2a958499b6
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -47,7 +47,8 @@ class ExchangeBase(PrintError):
url = ''.join(['https://', site, get_string])
async with make_aiohttp_session(Network.get_instance().proxy) as session:
async with session.get(url) as response:
return await response.json()
# set content_type to None to disable checking MIME type
return await response.json(content_type=None)
async def get_csv(self, site, get_string):
raw = await self.get_raw(site, get_string)