From f561fd45d91b4bdb1527cafd265e336525b2e7d7 Mon Sep 17 00:00:00 2001 From: Logan Furedi Date: Tue, 28 Apr 2026 16:02:54 -0500 Subject: [PATCH] fix: expect text/plain MIME type from wttr.in API reponses --- python_weather/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_weather/client.py b/python_weather/client.py index 6c2bf20..d7c5056 100644 --- a/python_weather/client.py +++ b/python_weather/client.py @@ -183,7 +183,7 @@ async def get( resp.raise_for_status() return Forecast( - await resp.json(content_type='application/text'), unit, locale + await resp.json(content_type='text/plain'), unit, locale ) except ClientResponseError: if attempts == self._max_retries: