requests v2.26.0 Release Notes
Release Date: 2021-07-13 // over 2 years ago-
๐ Improvements
๐ Requests now supports Brotli compression, if either the
brotli
orbrotlicffi
package is installed. (#5783)๐ง
Session.send
now correctly resolves proxy configurations from both the Session and Request. Behavior now matchesSession.request
. (#5681)
๐ Bugfixes
- ๐ Fixed a race condition in zip extraction when using Requests in parallel from zip archive. (#5707)
Dependencies
- Instead of
chardet
, use the MIT-licensedcharset_normalizer
for Python3 to remove license ambiguity for projects bundling requests. Ifchardet
is already installed on your machine it will be used instead ofcharset_normalizer
to keep backwards compatibility. (#5797)
You can also install
chardet
while installing requests by specifying[use_chardet_on_py3]
extra as follows:```shell pip install "requests[use_chardet_on_py3]" ```
Python2 still depends upon the
chardet
module.- ๐ Requests now supports
idna
3.x on Python 3.idna
2.x will continue to be used on Python 2 installations. (#5711)
๐ Deprecations
๐ The
requests[security]
extra has been converted to a no-op install. PyOpenSSL is no longer the recommended secure option for Requests. (#5867)๐ Requests has officially dropped support for Python 3.5. (#5867)