diff options
author | terminaldweller <thabogre@gmail.com> | 2021-09-30 02:14:13 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-09-30 02:14:13 +0000 |
commit | 47e7770dc4aac0cc8767935558a0c8cae74632c1 (patch) | |
tree | d179f93bea23c81df424d8a5d45951116424e1d8 /bin/sniff | |
parent | haproxy,jabber,bitlbee (diff) | |
download | scripts-47e7770dc4aac0cc8767935558a0c8cae74632c1.tar.gz scripts-47e7770dc4aac0cc8767935558a0c8cae74632c1.zip |
opewrt,haproxy,nginx,ejabberd,....
Diffstat (limited to '')
-rwxr-xr-x | bin/sniff | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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): |