##// END OF EJS Templates
httpconnection: properly inject ssl_wrap_socket into httpclient (issue4038)...
Augie Fackler -
r19809:50d72155 default
parent child Browse files
Show More
@@ -275,14 +275,13 b' class http2handler(urllib2.HTTPHandler, '
275 if '[' in host:
275 if '[' in host:
276 host = host[1:-1]
276 host = host[1:-1]
277
277
278 if keyfile:
279 kwargs['keyfile'] = keyfile
278 kwargs['keyfile'] = keyfile
280 if certfile:
281 kwargs['certfile'] = certfile
279 kwargs['certfile'] = certfile
282
280
283 kwargs.update(sslutil.sslkwargs(self.ui, host))
281 kwargs.update(sslutil.sslkwargs(self.ui, host))
284
282
285 con = HTTPConnection(host, port, use_ssl=True,
283 con = HTTPConnection(host, port, use_ssl=True,
284 ssl_wrap_socket=sslutil.ssl_wrap_socket,
286 ssl_validator=sslutil.validator(self.ui, host),
285 ssl_validator=sslutil.validator(self.ui, host),
287 **kwargs)
286 **kwargs)
288 return con
287 return con
General Comments 0
You need to be logged in to leave comments. Login now