Merge branch 'v2-1' into key-equals-empty

This commit is contained in:
Markus Opolka 2020-07-03 09:03:21 +02:00 committed by GitHub
commit 47a37556ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ def main(cliargs):
except HTTPError as e:
# Try to recover from HTTP Error, if there is JSON in the response
if e.info().get_content_subtype() == "json":
if "json" in e.info().get_content_subtype():
json_data = e.read()
else:
nagios.append_unknown(" HTTPError[%s], url:%s" % (str(e.code), url))