diff --git a/insights_client/connection.py b/insights_client/connection.py index 54debe7..3747008 100644 --- a/insights_client/connection.py +++ b/insights_client/connection.py @@ -358,7 +358,7 @@ def _test_openssl(self): sys.exit(1) sock.send(connect_str) res = sock.recv(4096) - if '200 Connection established' not in res: + if '200 connection established' not in res.lower(): logger.error('Failed to connect to %s. Invalid hostname.', self.base_url) sys.exit(1) else: