Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
2.26.0 (2021-07-13)
Improvements
Requests now supports Brotli compression, if either the
brotli
orbrotlicffi
package is installed. (Add support for brotli decoding #5783)Session.send
now correctly resolves proxy configurations from boththe Session and Request. Behavior now matches
Session.request
. (5677: Rebuild proxies on Session#send #5681)Bugfixes
from zip archive. (Avoid zip extract racing condition by using read+write instead extract #5707)
Dependencies
Instead of
chardet
, use the MIT-licensedcharset_normalizer
for Python3to remove license ambiguity for projects bundling requests. If
chardet
is already installed on your machine it will be used instead of
charset_normalizer
to keep backwards compatibility. (Switch LGPL'd chardet for MIT licensed charset_normalizer #5797)
You can also install
chardet
while installing requests byspecifying
[use_chardet_on_py3]
extra as follows:pip install "requests[use_chardet_on_py3]"
Note that installation of
chardet
in your environment through any means will disable useof
charset_normalizer
.Python 2.7 still depends upon the
chardet
module.Requests now supports
idna
3.x on Python 3.idna
2.x will continue tobe used on Python 2 installations. (bump idna has version 3.0 was released #5711)
Deprecations
The
requests[security]
extra has been converted to a no-op install.PyOpenSSL is no longer the recommended secure option for Requests. (Disable requests[security] and remove 3.5 support references #5867)
Requests has officially dropped support for Python 3.5. (Disable requests[security] and remove 3.5 support references #5867)