Skip to content

Commit

Permalink
Make getCamshot work on older app versions where the response content…
Browse files Browse the repository at this point in the history
… type is application/octet-stream (#22)
  • Loading branch information
tronikos authored Jun 12, 2024
1 parent ce4f5c0 commit ab299fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fullykiosk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ab299fb

Please sign in to comment.