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 |
|
|
278 | kwargs['keyfile'] = keyfile | |
279 |
|
|
279 | kwargs['certfile'] = certfile | |
280 | if certfile: |
|
|||
281 | 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