From d59fae4f08bd6159521b1ce029e767ade08ce635 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Wed, 4 Oct 2023 00:17:09 -0400 Subject: [PATCH] fix: content_type for certain nodes (#97) --- dank_mids/helpers/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dank_mids/helpers/session.py b/dank_mids/helpers/session.py index 90deeb96..d642e03c 100644 --- a/dank_mids/helpers/session.py +++ b/dank_mids/helpers/session.py @@ -100,7 +100,7 @@ async def post(self, endpoint: str, *args, loads: JSONDecoder = None, _retry_aft try: async with limiter: async with super().post(endpoint, *args, **kwargs) as response: - response = await response.json(loads=loads) + response = await response.json(loads=loads, content_type=None) logger.debug("received response %s", response) return response except ClientResponseError as ce: