From ab299fb10c61b6cef16ff953c73f99fb9bd41bad Mon Sep 17 00:00:00 2001 From: tronikos Date: Wed, 12 Jun 2024 06:35:26 -0700 Subject: [PATCH] Make getCamshot work on older app versions where the response content type is application/octet-stream (#22) --- fullykiosk/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fullykiosk/__init__.py b/fullykiosk/__init__.py index 70d29d4..c7ff95c 100644 --- a/fullykiosk/__init__.py +++ b/fullykiosk/__init__.py @@ -168,7 +168,7 @@ async def get(self, **kwargs): raise FullyKioskError(response.status, await response.text()) content_type = response.headers['Content-Type'] - if content_type.startswith("image/"): + if content_type.startswith("image/") or content_type == "application/octet-stream": return await response.content.read() data = await response.json(content_type=content_type)