All Versions
147
Latest Version
Avg Release Cycle
81 days
Latest Release
667 days ago
Changelog History
Page 5
Changelog History
Page 5
-
v2.12.1 Changes
November 16, 2016๐ Bugfixes
- โก๏ธ Updated setuptools 'security' extra for the new PyOpenSSL backend in urllib3.
Miscellaneous
- โก๏ธ Updated bundled urllib3 to 1.19.1.
-
v2.12.0 Changes
November 15, 2016๐ 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.
-
v2.11.1 Changes
August 17, 2016๐ Bugfixes
- Fixed a bug when using
iter_content
withdecode_unicode=True
for streamed bodies would raiseAttributeError
. This bug was introduced in 2.11. - Strip Content-Type and Transfer-Encoding headers from the header block when following a redirect that transforms the verb from POST/PUT to GET.
- Fixed a bug when using
-
v2.11.0 Changes
August 08, 2016๐ Improvements
- ๐ Added support for the
ALL_PROXY
environment variable. - Reject header values that contain leading whitespace or newline characters to reduce risk of header smuggling.
๐ Bugfixes
- ๐ Fixed occasional
TypeError
when attempting to decode a JSON response that occurred in an error case. Now correctly returns aValueError
. - Requests would incorrectly ignore a non-CIDR IP address in the
NO_PROXY
environment variables: Requests now treats it as a specific IP. - ๐ Fixed a bug when sending JSON data that could cause us to encounter obscure OpenSSL errors in certain network conditions (yes, really).
- Added type checks to ensure that
iter_content
only accepts integers andNone
for chunk sizes. - ๐ Fixed issue where responses whose body had not been fully consumed
would have the underlying connection closed but not returned to the
connection pool, which could cause Requests to hang in situations
where the
HTTPAdapter
had been configured to use a blocking connection pool.
Miscellaneous
- โก๏ธ Updated bundled urllib3 to 1.16.
- ๐ Some previous releases accidentally accepted non-strings as acceptable header values. This release does not.
- ๐ Added support for the
-
v2.10.0 Changes
April 29, 2016๐ New Features
- ๐ SOCKS Proxy Support! (requires PySocks;
$ pip install requests[socks]
)
Miscellaneous
- โก๏ธ Updated bundled urllib3 to 1.15.1.
- ๐ SOCKS Proxy Support! (requires PySocks;
-
v2.9.2 Changes
April 29, 2016๐ Improvements
- Change built-in CaseInsensitiveDict (used for headers) to use OrderedDict as its underlying datastore.
๐ Bugfixes
- Don't use redirect_cache if allow_redirects=False
- When passed objects that throw exceptions from
tell()
, send them via chunked transfer encoding instead of failing. - Raise a ProxyError for proxy related connection issues.
-
v2.9.1 Changes
December 21, 2015๐ Bugfixes
- Resolve regression introduced in 2.9.0 that made it impossible to send binary strings as bodies in Python 3.
- ๐ Fixed errors when calculating cookie expiration dates in certain locales.
Miscellaneous
- โก๏ธ Updated bundled urllib3 to 1.13.1.
-
v2.9.0 Changes
December 15, 2015Minor Improvements (Backwards compatible)
- ๐ The
verify
keyword argument now supports being passed a path to a directory of CA certificates, not just a single-file bundle. - โ Warnings are now emitted when sending files opened in text mode.
- Added the 511 Network Authentication Required status code to the status code registry.
๐ Bugfixes
- For file-like objects that are not sought to the very beginning, we now send the content length for the number of bytes we will actually read, rather than the total size of the file, allowing partial file uploads.
- When uploading file-like objects, if they are empty or have no
obvious content length we set
Transfer-Encoding: chunked
rather thanContent-Length: 0
. - We correctly receive the response in buffered mode when uploading chunked bodies.
- โ We now handle being passed a query string as a bytestring on Python 3, by decoding it as UTF-8.
- Sessions are now closed in all cases (exceptional and not) when using the functional API rather than leaking and waiting for the garbage collector to clean them up.
- Correctly handle digest auth headers with a malformed
qop
directive that contains no token, by treating it the same as if noqop
directive was provided at all. - ๐ Minor performance improvements when removing specific cookies by name.
Miscellaneous
- โก๏ธ Updated urllib3 to 1.13.
- ๐ The
-
v2.8.1 Changes
October 13, 2015๐ Bugfixes
- โก๏ธ Update certificate bundle to match
certifi
2015.9.6.2's weak certificate bundle. - Fix a bug in 2.8.0 where requests would raise
ConnectTimeout
instead ofConnectionError
- When using the PreparedRequest flow, requests will now correctly
respect the
json
parameter. Broken in 2.8.0. - When using the PreparedRequest flow, requests will now correctly handle a Unicode-string method name on Python 2. Broken in 2.8.0.
- โก๏ธ Update certificate bundle to match
-
v2.8.0 Changes
October 05, 2015Minor Improvements (Backwards Compatible)
- ๐ Requests now supports per-host proxies. This allows the
proxies
dictionary to have entries of the form{'<scheme>://<hostname>': '<proxy>'}
. Host-specific proxies will be used in preference to the previously-supported scheme-specific ones, but the previous syntax will continue to work. -
Response.raise_for_status
now prints the URL that failed as part of the exception message. -
requests.utils.get_netrc_auth
now takes anraise_errors
kwarg, defaulting toFalse
. WhenTrue
, errors parsing.netrc
files cause exceptions to be thrown. - Change to bundled projects import logic to make it easier to unbundle requests downstream.
- 0๏ธโฃ Changed the default User-Agent string to avoid leaking data on Linux: now contains only the requests version.
๐ Bugfixes
- The
json
parameter topost()
and friends will now only be used if neitherdata
norfiles
are present, consistent with the documentation. - We now ignore empty fields in the
NO_PROXY
environment variable. - ๐ Fixed problem where
httplib.BadStatusLine
would get raised if combiningstream=True
withcontextlib.closing
. - Prevented bugs where we would attempt to return the same connection back to the connection pool twice when sending a Chunked body.
- Miscellaneous minor internal changes.
- ๐ Digest Auth support is now thread safe.
โก๏ธ Updates
- โก๏ธ Updated urllib3 to 1.12.
- ๐ Requests now supports per-host proxies. This allows the