mercurial/url.py
changeset 25415 21b536f01eda
parent 25414 f7ccbc2776b7
child 25429 9d1c61715939
equal deleted inserted replaced
25414:f7ccbc2776b7 25415:21b536f01eda
   173         if has_https and self.realhostport: # use CONNECT proxy
   173         if has_https and self.realhostport: # use CONNECT proxy
   174             self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
   174             self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
   175             self.sock.connect((self.host, self.port))
   175             self.sock.connect((self.host, self.port))
   176             if _generic_proxytunnel(self):
   176             if _generic_proxytunnel(self):
   177                 # we do not support client X.509 certificates
   177                 # we do not support client X.509 certificates
   178                 self.sock = sslutil.ssl_wrap_socket(self.sock, None, None,
   178                 self.sock = sslutil.ssl_wrap_socket(self.sock, None, None, None,
   179                                                     serverhostname=self.host)
   179                                                     serverhostname=self.host)
   180         else:
   180         else:
   181             keepalive.HTTPConnection.connect(self)
   181             keepalive.HTTPConnection.connect(self)
   182 
   182 
   183     def getresponse(self):
   183     def getresponse(self):