Skip to content

Commit

Permalink
Accept all 200s from the API
Browse files Browse the repository at this point in the history
  • Loading branch information
brantleyr committed Jan 25, 2017
1 parent 5d7aaf1 commit 3d254e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redhat_access_insights/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def _test_openssl(self):
sys.exit(1)
sock.send(connect_str)
res = sock.recv(4096)
if 'HTTP/1.0 200 Connection established' not in res:
if '200 Connection established' not in res:
logger.error('Failed to connect to %s. Invalid hostname.' % self.base_url)
sys.exit(1)
else:
Expand Down

0 comments on commit 3d254e7

Please sign in to comment.