mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
PEP 476: enable HTTPS certificate verification by default (#22417)
Patch by Alex Gaynor with some modifications by me.
This commit is contained in:
parent
8cf7c1cff0
commit
4ffb075271
11 changed files with 116 additions and 69 deletions
|
@ -62,11 +62,6 @@ The :mod:`urllib.request` module defines the following functions:
|
|||
*cafile* and *capath* parameters are omitted. This will only work on
|
||||
some non-Windows platforms.
|
||||
|
||||
.. warning::
|
||||
If neither *cafile* nor *capath* is specified, and *cadefault* is ``False``,
|
||||
an HTTPS request will not do any verification of the server's
|
||||
certificate.
|
||||
|
||||
For http and https urls, this function returns a
|
||||
:class:`http.client.HTTPResponse` object which has the following
|
||||
:ref:`httpresponse-objects` methods.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue