mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #5639: Add a *server_hostname* argument to SSLContext.wrap_socket
in order to support the TLS SNI extension. `HTTPSConnection` and `urlopen()` also use this argument, so that HTTPS virtual hosts are now supported.
This commit is contained in:
parent
4ebfdf01bb
commit
d532321f7b
9 changed files with 137 additions and 14 deletions
|
|
@ -72,6 +72,10 @@ The :mod:`urllib.request` module defines the following functions:
|
|||
.. versionchanged:: 3.2
|
||||
*cafile* and *capath* were added.
|
||||
|
||||
.. versionchanged:: 3.2
|
||||
HTTPS virtual hosts are now supported if possible (that is, if
|
||||
:data:`ssl.HAS_SNI` is true).
|
||||
|
||||
.. function:: install_opener(opener)
|
||||
|
||||
Install an :class:`OpenerDirector` instance as the default global opener.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue