diff --git a/cloudfrunt.py b/cloudfrunt.py index d172b94..6e74544 100644 --- a/cloudfrunt.py +++ b/cloudfrunt.py @@ -145,11 +145,11 @@ def find_cf_issues(domains): try: response = urlopen('http://' + domain) except HTTPError as e: - if e.code == 403 and 'Bad request' in e.fp.read(): + if e.code == 403 and b'Bad request' in e.fp.read(): try: response = urlopen('https://' + domain) except URLError as e: - if 'handshake' in str(e).lower() or e.code == 403 and 'Bad request' in e.fp.read(): + if 'handshake' in str(e).lower() or e.code == 403 and b'Bad request' in e.fp.read(): error_domains.append(domain) except: pass