Check decoding output

This commit is contained in:
Antonio J. Delgado 2024-12-19 18:44:47 +02:00
parent c0cd9feebf
commit 9d7f3127df

View file

@ -456,6 +456,8 @@ class NextcloudHandler:
self.debug(
{"action": "get", "status_code": r.status_code, "size": len(r.content)}
)
if r.headers['Content-Type'] == 'text/html; charset=UTF-8':
return False
return r.json()
if r.status_code == 404:
self.error(