requests v2.12.0 Release Notes
Release Date: 2016-11-15 // over 7 years ago-
๐ Improvements
- โก๏ธ Updated support for internationalized domain names from IDNA2003 to IDNA2008. This updated support is required for several forms of IDNs and is mandatory for .de domains.
- Much improved heuristics for guessing content lengths: Requests will
no longer read an entire
StringIO
into memory. - Much improved logic for recalculating
Content-Length
headers forPreparedRequest
objects. - Improved tolerance for file-like objects that have no
tell
method but do have aseek
method. - Anything that is a subclass of
Mapping
is now treated like a dictionary by thedata=
keyword argument. - Requests now tolerates empty passwords in proxy credentials, rather than stripping the credentials.
- If a request is made with a file-like object as the body and that request is redirected with a 307 or 308 status code, Requests will now attempt to rewind the body object so it can be replayed.
๐ Bugfixes
- When calling
response.close
, the call toclose
will be propagated through to non-urllib3 backends. - ๐ Fixed issue where the
ALL_PROXY
environment variable would be preferred over scheme-specific variables likeHTTP_PROXY
. - ๐ Fixed issue where non-UTF8 reason phrases got severely mangled by falling back to decoding using ISO 8859-1 instead.
- ๐ Fixed a bug where Requests would not correctly correlate cookies set when using custom Host headers if those Host headers did not use the native string type for the platform.
Miscellaneous
- โก๏ธ Updated bundled urllib3 to 1.19.
- โก๏ธ Updated bundled certifi certs to 2016.09.26.