From 634d939315915e090198bb68ce52e9cada9f39f2 Mon Sep 17 00:00:00 2001 From: Phan Anh Tuan Date: Tue, 14 Nov 2023 15:42:51 +0700 Subject: [PATCH] fix: add json(content_type=None) to fix bing_x content-type --- hummingbot/core/web_assistant/connections/data_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hummingbot/core/web_assistant/connections/data_types.py b/hummingbot/core/web_assistant/connections/data_types.py index 1702b9c9f0..196ed4fa56 100644 --- a/hummingbot/core/web_assistant/connections/data_types.py +++ b/hummingbot/core/web_assistant/connections/data_types.py @@ -111,7 +111,7 @@ def headers(self) -> Optional[Mapping[str, str]]: return headers_ async def json(self) -> Any: - json_ = await self._aiohttp_response.json() + json_ = await self._aiohttp_response.json(content_type=None) return json_ async def text(self) -> str: