All Versions
147
Latest Version
Avg Release Cycle
81 days
Latest Release
666 days ago

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 for PreparedRequest objects.
    • Improved tolerance for file-like objects that have no tell method but do have a seek method.
    • Anything that is a subclass of Mapping is now treated like a dictionary by the data= 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 to close will be propagated through to non-urllib3 backends.
    • ๐Ÿ›  Fixed issue where the ALL_PROXY environment variable would be preferred over scheme-specific variables like HTTP_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 with decode_unicode=True for streamed bodies would raise AttributeError. 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.
  • 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 a ValueError.
    • 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 and None 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.
  • 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.
  • 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, 2015

    Minor 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 than Content-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 no qop directive was provided at all.
    • ๐ŸŽ Minor performance improvements when removing specific cookies by name.

    Miscellaneous

    • โšก๏ธ Updated urllib3 to 1.13.
  • 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 of ConnectionError
    • 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.
  • v2.8.0 Changes

    October 05, 2015

    Minor 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 an raise_errors kwarg, defaulting to False. When True, 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 to post() and friends will now only be used if neither data nor files 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 combining stream=True with contextlib.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.