aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-09-30 02:14:13 +0000
committerterminaldweller <thabogre@gmail.com>2021-09-30 02:14:13 +0000
commit47e7770dc4aac0cc8767935558a0c8cae74632c1 (patch)
treed179f93bea23c81df424d8a5d45951116424e1d8 /bin
parenthaproxy,jabber,bitlbee (diff)
downloadscripts-47e7770dc4aac0cc8767935558a0c8cae74632c1.tar.gz
scripts-47e7770dc4aac0cc8767935558a0c8cae74632c1.zip
opewrt,haproxy,nginx,ejabberd,....
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sniff4
1 files changed, 3 insertions, 1 deletions
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):