From 47e7770dc4aac0cc8767935558a0c8cae74632c1 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 30 Sep 2021 05:44:13 +0330 Subject: opewrt,haproxy,nginx,ejabberd,.... --- bin/sniff | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/sniff') diff --git a/bin/sniff b/bin/sniff index 3ecf3f4..b8e997b 100755 --- a/bin/sniff +++ b/bin/sniff @@ -30,7 +30,9 @@ def simple_get(url): def is_good_response(resp): content_type = resp.headers['Content-Type'].lower() - return (resp.status_code == 200 and content_type is not None and content_type.find("html") > -1) + return (resp.status_code == 200 and + content_type is not None and + content_type.find("html") > -1) def log_error(e): -- cgit v1.2.3