diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-23 17:06:39 -0600 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-23 17:06:39 -0600 |
commit | f9284ae8ede5b8977248a4259eee0cd81a100c16 (patch) | |
tree | b3430fd55e6b76ee01dfd6ac4a0baa52de7b7a3a /Lib/http/client.py | |
parent | merge 3.4 (diff) | |
parent | don't require OpenSSL SNI to pass hostname to ssl functions (#22921) (diff) | |
download | cpython-f9284ae8ede5b8977248a4259eee0cd81a100c16.tar.gz cpython-f9284ae8ede5b8977248a4259eee0cd81a100c16.tar.bz2 cpython-f9284ae8ede5b8977248a4259eee0cd81a100c16.zip |
merge 3.4 (#22921)
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r-- | Lib/http/client.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 0a58fcb2108..31d066bcc64 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -1288,10 +1288,9 @@ else: server_hostname = self._tunnel_host else: server_hostname = self.host - sni_hostname = server_hostname if ssl.HAS_SNI else None self.sock = self._context.wrap_socket(self.sock, - server_hostname=sni_hostname) + server_hostname=server_hostname) if not self._context.check_hostname and self._check_hostname: try: ssl.match_hostname(self.sock.getpeercert(), server_hostname) |