If you or your organization rely on urllib3 consider supporting us via GitHub Sponsors.
⚠️ urllib3 v2.0 will drop support for Python 2: Read more in the v2.0 Roadmap
⚠️ This release will be the last release supporting Python 3.5. Please upgrade to a non-EOL Python version.
- Changed
urllib3[brotli]
extra to favor installing Brotli libraries that are still receiving updates likebrotli
andbrotlicffi
instead ofbrotlipy
. This change does not impact behavior of urllib3, only which dependencies are installed. - Fixed a socket leaking when
HTTPSConnection.connect()
raises an exception. - Fixed
server_hostname
being forwarded fromPoolManager
toHTTPConnectionPool
when requesting an HTTP URL. Should only be forwarded when requesting an HTTPS URL.