mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
fx: disable checking mime type in get_json
looking at you, CoinDesk..
This commit is contained in:
parent
f38ec93ae9
commit
2a958499b6
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue