better checking of JSON type

pull/428/head
dgtlmoon 3 years ago
parent 04bef6091e
commit a0e4f9b88a

@ -102,7 +102,7 @@ class perform_site_check():
# https://stackoverflow.com/questions/41817578/basic-method-chaining ? # https://stackoverflow.com/questions/41817578/basic-method-chaining ?
# return content().textfilter().jsonextract().checksumcompare() ? # 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 is_html = not is_json
css_filter_rule = watch['css_filter'] css_filter_rule = watch['css_filter']

Loading…
Cancel
Save