diff --git a/changedetectionio/fetch_site_status.py b/changedetectionio/fetch_site_status.py index d75c0c6e..43cf7383 100644 --- a/changedetectionio/fetch_site_status.py +++ b/changedetectionio/fetch_site_status.py @@ -102,7 +102,7 @@ class perform_site_check(): # https://stackoverflow.com/questions/41817578/basic-method-chaining ? # return content().textfilter().jsonextract().checksumcompare() ? - is_json = fetcher.headers.get('Content-Type', '') == 'application/json' + is_json = 'application/json' in fetcher.headers.get('Content-Type', '') is_html = not is_json css_filter_rule = watch['css_filter']