Skip to content

Commit

Permalink
fixes #93
Browse files Browse the repository at this point in the history
  • Loading branch information
schlamar committed Mar 30, 2012
1 parent 13e76db commit d9c19a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Package Control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d9c19a9

Please sign in to comment.