Check decoding output
This commit is contained in:
parent
c0cd9feebf
commit
9d7f3127df
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue