This commit is contained in:
Lex Berezhny 2021-02-10 13:45:35 -05:00
parent dee494e12f
commit f1cb7d27ac

View file

@ -58,9 +58,9 @@ class MarketFeed:
raise NotImplementedError() raise NotImplementedError()
async def get_response(self): async def get_response(self):
headers = {"User-Agent": "lbrynet"}
async with aiohttp_request( async with aiohttp_request(
'get', self.url, params=self.params, timeout=self.request_timeout, headers=headers 'get', self.url, params=self.params,
timeout=self.request_timeout, headers={"User-Agent": "lbrynet"}
) as response: ) as response:
try: try:
self._last_response = await response.json(content_type=None) self._last_response = await response.json(content_type=None)