Skip to content

Commit ab299fb

Browse files
authored
Make getCamshot work on older app versions where the response content type is application/octet-stream (#22)
1 parent ce4f5c0 commit ab299fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fullykiosk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async def get(self, **kwargs):
168168
raise FullyKioskError(response.status, await response.text())
169169

170170
content_type = response.headers['Content-Type']
171-
if content_type.startswith("image/"):
171+
if content_type.startswith("image/") or content_type == "application/octet-stream":
172172
return await response.content.read()
173173
data = await response.json(content_type=content_type)
174174

0 commit comments

Comments
 (0)