Skip to content

Commit

Permalink
Strip URL after host
Browse files Browse the repository at this point in the history
  • Loading branch information
aagbsn committed Jan 8, 2015
1 parent 8587b81 commit d169079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ooni/nettests/experimental/tls_certificates.py
Expand Up @@ -42,7 +42,7 @@ def test_fetch_cert_chain(self):
if "https" in url.split(":")[0]: port = 443
else: port = 80

host = url.split("//")[1].strip()
host = url.split("//")[1].split('/')[0].strip()
ciphersuite = ":".join(firefox_ciphers)
endpoint = TLSWrapClientEndpoint(ClientContextFactory(),
TCP4ClientEndpoint(reactor, host, port))
Expand Down

0 comments on commit d169079

Please sign in to comment.