Permalink
Browse files

fixes #93

  • Loading branch information...
schlamar committed Mar 30, 2012
1 parent 13e76db commit d9c19a9e167a936a614f80c50d16d67808ce0f08
Showing with 2 additions and 2 deletions.
  1. +2 −2 Package Control.py
View
@@ -64,8 +64,8 @@ def _ValidateCertificateHostname(self, cert, hostname):
return False
def connect(self):
- sock = socket.create_connection((self.host, self.port))
- self.sock = ssl.wrap_socket(sock, keyfile=self.key_file,
+ httplib.HTTPConnection.connect(self)
+ self.sock = ssl.wrap_socket(self.sock, keyfile=self.key_file,
certfile=self.cert_file,
cert_reqs=self.cert_reqs,
ca_certs=self.ca_certs)

0 comments on commit d9c19a9

Please sign in to comment.