HISTORY.md
This file
Path
HISTORY.md
1,982 lines · 59.0 KiB · Markdown
Last changed by
v2.32.3Nate Prewittbefore adoption0e322af
History of this fileTake it
The walk stopped after 200 commits: lines older than daa2b29 point at it.
updating usage informationNate Prewittbefore adoptiondaa2b29
lines 1–6why, one step back1Release History2===============34dev5---6Fix inconsistent exception type in response.json() method (#5856)Steve Berdybefore adoptiondb575ee
lines 7–8why, one step back7- \[Short description of non-trivial change.\]8v2.32.3Nate Prewittbefore adoption0e322af
line 9why, one step back92.32.3 (2024-05-29)Merge pull request #6716 from sigmavirus24/bug/6715Nate Prewittbefore adoption145b539
lines 10–12why, one step back10-------------------1112**Bugfixes**v2.32.3Nate Prewittbefore adoption0e322af
line 13why, one step back13- Fixed bug breaking the ability to specify custom SSLContexts in sub-classes ofMerge pull request #6716 from sigmavirus24/bug/6715Nate Prewittbefore adoption145b539
line 14why, one step back14 HTTPAdapter. (#6716)v2.32.3Nate Prewittbefore adoption0e322af
lines 15–16why, one step back15- Fixed issue where Requests started failing to run on Python versions compiled16 without the `ssl` module. (#6724)Merge pull request #6716 from sigmavirus24/bug/6715Nate Prewittbefore adoption145b539
line 17why, one step back17v2.32.2Nate Prewittbefore adoption88dce9d
lines 18–31why, one step back182.32.2 (2024-05-21)19-------------------2021**Deprecations**22- To provide a more stable migration for custom HTTPAdapters impacted23 by the CVE changes in 2.32.0, we've renamed `_get_connection` to24 a new public API, `get_connection_with_tls_context`. Existing custom25 HTTPAdapters will need to migrate their code to use this new API.26 `get_connection` is considered deprecated in all versions of Requests>=2.32.0.2728 A minimal (2-line) example has been provided in the linked PR to ease29 migration, but we strongly urge users to evaluate if their custom adapter30 is subject to the same issue described in CVE-2024-35195. (#6710)31v2.32.1Nate Prewittbefore adoption970e8ce
lines 32–38why, one step back322.32.1 (2024-05-20)33-------------------3435**Bugfixes**36- Add missing test certs to the sdist distributed on PyPI.3738v2.32.0Nate Prewittbefore adoptiond6ebc4a
lines 39–84why, one step back392.32.0 (2024-05-20)40-------------------4142**Security**43- Fixed an issue where setting `verify=False` on the first request from a44 Session will cause subsequent requests to the _same origin_ to also ignore45 cert verification, regardless of the value of `verify`.46 (https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56)4748**Improvements**49- `verify=True` now reuses a global SSLContext which should improve50 request time variance between first and subsequent requests. It should51 also minimize certificate load time on Windows systems when using a Python52 version built with OpenSSL 3.x. (#6667)53- Requests now supports optional use of character detection54 (`chardet` or `charset_normalizer`) when repackaged or vendored.55 This enables `pip` and other projects to minimize their vendoring56 surface area. The `Response.text()` and `apparent_encoding` APIs57 will default to `utf-8` if neither library is present. (#6702)5859**Bugfixes**60- Fixed bug in length detection where emoji length was incorrectly61 calculated in the request content-length. (#6589)62- Fixed deserialization bug in JSONDecodeError. (#6629)63- Fixed bug where an extra leading `/` (path separator) could lead64 urllib3 to unnecessarily reparse the request URI. (#6644)6566**Deprecations**6768- Requests has officially added support for CPython 3.12 (#6503)69- Requests has officially added support for PyPy 3.9 and 3.10 (#6641)70- Requests has officially dropped support for CPython 3.7 (#6642)71- Requests has officially dropped support for PyPy 3.7 and 3.8 (#6641)7273**Documentation**74- Various typo fixes and doc improvements.7576**Packaging**77- Requests has started adopting some modern packaging practices.78 The source files for the projects (formerly `requests`) is now located79 in `src/requests` in the Requests sdist. (#6506)80- Starting in Requests 2.33.0, Requests will migrate to a PEP 517 build system81 using `hatchling`. This should not impact the average user, but extremely old82 versions of packaging utilities may have issues with the new packaging format.8384v2.31.0Nate Prewittbefore adoption147c851
lines 85–92why, one step back852.31.0 (2023-05-22)86-------------------8788**Security**89- Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential90 forwarding of `Proxy-Authorization` headers to destination servers when91 following HTTPS redirects.92Merge pull request #6583 from EFord36/fix-broken-linksIan Stapleton Cordascobefore adoptionf3f2611
line 93why, one step back93 When proxies are defined with user info (`https://user:pass@proxy:8080`), Requestsv2.31.0Nate Prewittbefore adoption147c851
lines 94–111why, one step back94 will construct a `Proxy-Authorization` header that is attached to the request to95 authenticate with the proxy.9697 In cases where Requests receives a redirect response, it previously reattached98 the `Proxy-Authorization` header incorrectly, resulting in the value being99 sent through the tunneled connection to the destination server. Users who rely on100 defining their proxy credentials in the URL are *strongly* encouraged to upgrade101 to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy102 credentials once the change has been fully deployed.103104 Users who do not use a proxy or do not supply their proxy credentials through105 the user information portion of their proxy URL are not subject to this106 vulnerability.107108 Full details can be read in our [Github Security Advisory](https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q)109 and [CVE-2023-32681](https://nvd.nist.gov/vuln/detail/CVE-2023-32681).110111v2.30.0Nate Prewittbefore adoption2ad18e0
lines 112–123why, one step back1122.30.0 (2023-05-03)113-------------------114115**Dependencies**116- ⚠️ Added support for urllib3 2.0. ⚠️117118 This may contain minor breaking changes so we advise careful testing and119 reviewing https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html120 prior to upgrading.121122 Users who wish to stay on urllib3 1.x can pin to `urllib3<2`.123v2.29.0Nate Prewittbefore adoption87d63de
lines 124–131why, one step back1242.29.0 (2023-04-26)125-------------------126127**Improvements**128129- Requests now defers chunked requests to the urllib3 implementation to improve130 standardization. (#6226)131- Requests relaxes header component requirements to support bytes/str subclasses. (#6356)Wrap urllib3's SSLError as requests' SSLError (#6057)Nate Prewittbefore adoption95f4567
line 132why, one step back132v2.28.2Nate Prewittbefore adoption61c324d
lines 133–143why, one step back1332.28.2 (2023-01-12)134-------------------135136**Dependencies**137138- Requests now supports charset\_normalizer 3.x. (#6261)139140**Bugfixes**141142- Updated MissingSchema exception to suggest https scheme rather than http. (#6188)143v2.28.1Nate Prewittbefore adoption4d39457
lines 144–155why, one step back1442.28.1 (2022-06-29)145-------------------146147**Improvements**148149- Speed optimization in `iter_content` with transition to `yield from`. (#6170)150151**Dependencies**152153- Added support for chardet 5.0.0 (#6179)154- Added support for charset-normalizer 2.1.0 (#6169)155v2.28.0Nate Prewittbefore adoptionda9996f
lines 156–157why, one step back1562.28.0 (2022-06-09)157-------------------Wrap urllib3's SSLError as requests' SSLError (#6057)Nate Prewittbefore adoption95f4567
line 158why, one step back158Farewell, sweet Concorde!Nate Prewittbefore adoption8bce583
lines 159–160why, one step back159**Deprecations**160v2.28.0Nate Prewittbefore adoptionda9996f
lines 161–178why, one step back161- ⚠️ Requests has officially dropped support for Python 2.7. ⚠️ (#6091)162- Requests has officially dropped support for Python 3.6 (including pypy3.6). (#6091)163164**Improvements**165166- Wrap JSON parsing issues in Request's JSONDecodeError for payloads without167 an encoding to make `json()` API consistent. (#6097)168- Parse header components consistently, raising an InvalidHeader error in169 all invalid cases. (#6154)170- Added provisional 3.11 support with current beta build. (#6155)171- Requests got a makeover and we decided to paint it black. (#6095)172173**Bugfixes**174175- Fixed bug where setting `CURL_CA_BUNDLE` to an empty string would disable176 cert verification. All Requests 2.x versions before 2.28.0 are affected. (#6074)177- Fixed urllib3 exception leak, wrapping `urllib3.exceptions.SSLError` with178 `requests.exceptions.SSLError` for `content` and `iter_content`. (#6057)Fixed a small typo (#6452)Syed Saifullahbefore adoptiond3d5044
line 179why, one step back179- Fixed issue where invalid Windows registry entries caused proxy resolutionv2.28.0Nate Prewittbefore adoptionda9996f
lines 180–182why, one step back180 to raise an exception rather than ignoring the entry. (#6149)181- Fixed issue where entire payload could be included in the error message for182 JSONDecodeError. (#6036)Farewell, sweet Concorde!Nate Prewittbefore adoption8bce583
line 183why, one step back183v2.27.1Nate Prewittbefore adoption31a89d9
lines 184–191why, one step back1842.27.1 (2022-01-05)185-------------------186187**Bugfixes**188189- Fixed parsing issue that resulted in the `auth` component being190 dropped from proxy URLs. (#6028)191v2.27.0Nate Prewittbefore adoption0192aac
lines 192–200why, one step back1922.27.0 (2022-01-03)193-------------------194195**Improvements**196197- Officially added support for Python 3.10. (#5928)198199- Added a `requests.exceptions.JSONDecodeError` to unify JSON exceptions between200 Python 2 and 3. This gets raised in the `response.json()` method, and isFix inconsistent exception type in response.json() method (#5856)Steve Berdybefore adoptiondb575ee
line 201why, one step back201 backwards compatible as it inherits from previously thrown exceptions.v2.27.0Nate Prewittbefore adoption0192aac
line 202why, one step back202 Can be caught from `requests.exceptions.RequestException` as well. (#5856)v2.24.0Nate Prewittbefore adoption0797c61
line 203why, one step back203v2.27.0Nate Prewittbefore adoption0192aac
lines 204–238why, one step back204- Improved error text for misnamed `InvalidSchema` and `MissingSchema`205 exceptions. This is a temporary fix until exceptions can be renamed206 (Schema->Scheme). (#6017)207208- Improved proxy parsing for proxy URLs missing a scheme. This will address209 recent changes to `urlparse` in Python 3.9+. (#5917)210211**Bugfixes**212213- Fixed defect in `extract_zipped_paths` which could result in an infinite loop214 for some paths. (#5851)215216- Fixed handling for `AttributeError` when calculating length of files obtained217 by `Tarfile.extractfile()`. (#5239)218219- Fixed urllib3 exception leak, wrapping `urllib3.exceptions.InvalidHeader` with220 `requests.exceptions.InvalidHeader`. (#5914)221222- Fixed bug where two Host headers were sent for chunked requests. (#5391)223224- Fixed regression in Requests 2.26.0 where `Proxy-Authorization` was225 incorrectly stripped from all requests sent with `Session.send`. (#5924)226227- Fixed performance regression in 2.26.0 for hosts with a large number of228 proxies available in the environment. (#5924)229230- Fixed idna exception leak, wrapping `UnicodeError` with231 `requests.exceptions.InvalidURL` for URLs with a leading dot (.) in the232 domain. (#5414)233234**Deprecations**235236- Requests support for Python 2.7 and 3.6 will be ending in 2022. While we237 don't have exact dates, Requests 2.27.x is likely to be the last release238 series providing support.Catch AttributeError in utils.super_len (#5239)David Hothambefore adoption2d2447e
line 239why, one step back239v2.26.0Nate Prewittbefore adoptiona1a6a54
lines 240–255why, one step back2402.26.0 (2021-07-13)241-------------------242243**Improvements**244245- Requests now supports Brotli compression, if either the `brotli` or246 `brotlicffi` package is installed. (#5783)247248- `Session.send` now correctly resolves proxy configurations from both249 the Session and Request. Behavior now matches `Session.request`. (#5681)250251**Bugfixes**252253- Fixed a race condition in zip extraction when using Requests in parallel254 from zip archive. (#5707)255Switch LGPL'd chardet for MIT licensed charset_normalizer (#5797)Ash Berlin-Taylorbefore adoption2ed84f5
lines 256–260why, one step back256**Dependencies**257258- Instead of `chardet`, use the MIT-licensed `charset_normalizer` for Python3259 to remove license ambiguity for projects bundling requests. If `chardet`260 is already installed on your machine it will be used instead of `charset_normalizer`v2.26.0Nate Prewittbefore adoptiona1a6a54
line 261why, one step back261 to keep backwards compatibility. (#5797)Switch LGPL'd chardet for MIT licensed charset_normalizer (#5797)Ash Berlin-Taylorbefore adoption2ed84f5
lines 262–271why, one step back262263 You can also install `chardet` while installing requests by264 specifying `[use_chardet_on_py3]` extra as follows:265266 ```shell267 pip install "requests[use_chardet_on_py3]"268 ```269270 Python2 still depends upon the `chardet` module.271v2.26.0Nate Prewittbefore adoptiona1a6a54
lines 272–274why, one step back272- Requests now supports `idna` 3.x on Python 3. `idna` 2.x will continue to273 be used on Python 2 installations. (#5711)274Disable requests[security] and remove 3.5 support referencesNate Prewittbefore adoptionf6c0619
lines 275–277why, one step back275**Deprecations**276277- The `requests[security]` extra has been converted to a no-op install.v2.26.0Nate Prewittbefore adoptiona1a6a54
line 278why, one step back278 PyOpenSSL is no longer the recommended secure option for Requests. (#5867)Disable requests[security] and remove 3.5 support referencesNate Prewittbefore adoptionf6c0619
line 279why, one step back279v2.26.0Nate Prewittbefore adoptiona1a6a54
line 280why, one step back280- Requests has officially dropped support for Python 3.5. (#5867)Disable requests[security] and remove 3.5 support referencesNate Prewittbefore adoptionf6c0619
line 281why, one step back281v2.25.1Nate Prewittbefore adoptionc2b307d
lines 282–292why, one step back2822.25.1 (2020-12-16)283-------------------284285**Bugfixes**286287- Requests now treats `application/json` as `utf8` by default. Resolving288 inconsistencies between `r.text` and `r.json` output. (#5673)289290**Dependencies**291292- Requests now supports chardet v4.x.v2.25.0Nate Prewittbefore adoption03957eb
lines 293–294why, one step back2932942.25.0 (2020-11-11)General doc updates (#5923)Nate Prewittbefore adoption9572d6a
line 295why, one step back295-------------------v2.25.0Nate Prewittbefore adoption03957eb
lines 296–310why, one step back296297**Improvements**298299- Added support for NETRC environment variable. (#5643)300301**Dependencies**302303- Requests now supports urllib3 v1.26.304305**Deprecations**306307- Requests v2.25.x will be the last release series with support for Python 3.5.308- The `requests[security]` extra is officially deprecated and will be removed309 in Requests v2.26.0.310v2.24.0Nate Prewittbefore adoption0797c61
lines 311–313why, one step back3112.24.0 (2020-06-17)312-------------------313updating usage informationNate Prewittbefore adoptiondaa2b29
lines 314–321why, one step back314**Improvements**315316- pyOpenSSL TLS implementation is now only used if Python317 either doesn't have an `ssl` module or doesn't support318 SNI. Previously pyOpenSSL was unconditionally used if available.319 This applies even if pyOpenSSL is installed via the320 `requests[security]` extra (#5443)321v2.24.0Nate Prewittbefore adoption0797c61
lines 322–326why, one step back322- Redirect resolution should now only occur when323 `allow_redirects` is True. (#5492)324325- No longer perform unnecessary Content-Length calculation for326 requests that won't use it. (#5496)updating usage informationNate Prewittbefore adoptiondaa2b29
lines 327–341why, one step back3273282.23.0 (2020-02-19)329-------------------330331**Improvements**332333- Remove defunct reference to `prefetch` in Session `__attrs__` (#5110)334335**Bugfixes**336337- Requests no longer outputs password in basic auth usage warning. (#5099)338339**Dependencies**340341- Pinning for `chardet` and `idna` now uses major version instead of minor.fix minor typos (#5934)Kevin Kirschebefore adoptionfc106ab
line 342why, one step back342 This hopefully reduces the need for releases every time a dependency is updated.updating usage informationNate Prewittbefore adoptiondaa2b29
lines 343–696why, one step back3433442.22.0 (2019-05-15)345-------------------346347**Dependencies**348349- Requests now supports urllib3 v1.25.2.350 (note: 1.25.0 and 1.25.1 are incompatible)351352**Deprecations**353354- Requests has officially stopped support for Python 3.4.3553562.21.0 (2018-12-10)357-------------------358359**Dependencies**360361- Requests now supports idna v2.8.3623632.20.1 (2018-11-08)364-------------------365366**Bugfixes**367368- Fixed bug with unintended Authorization header stripping for369 redirects using default ports (http/80, https/443).3703712.20.0 (2018-10-18)372-------------------373374**Bugfixes**375376- Content-Type header parsing is now case-insensitive (e.g.377 charset=utf8 v Charset=utf8).378- Fixed exception leak where certain redirect urls would raise379 uncaught urllib3 exceptions.380- Requests removes Authorization header from requests redirected381 from https to http on the same hostname. (CVE-2018-18074)382- `should_bypass_proxies` now handles URIs without hostnames (e.g.383 files).384385**Dependencies**386387- Requests now supports urllib3 v1.24.388389**Deprecations**390391- Requests has officially stopped support for Python 2.6.3923932.19.1 (2018-06-14)394-------------------395396**Bugfixes**397398- Fixed issue where status\_codes.py's `init` function failed trying399 to append to a `__doc__` value of `None`.4004012.19.0 (2018-06-12)402-------------------403404**Improvements**405406- Warn user about possible slowdown when using cryptography version407 < 1.3.4408- Check for invalid host in proxy URL, before forwarding request to409 adapter.410- Fragments are now properly maintained across redirects. (RFC7231411 7.1.2)412- Removed use of cgi module to expedite library load time.413- Added support for SHA-256 and SHA-512 digest auth algorithms.414- Minor performance improvement to `Request.content`.415- Migrate to using collections.abc for 3.7 compatibility.416417**Bugfixes**418419- Parsing empty `Link` headers with `parse_header_links()` no longer420 return one bogus entry.421- Fixed issue where loading the default certificate bundle from a zip422 archive would raise an `IOError`.423- Fixed issue with unexpected `ImportError` on windows system which do424 not support `winreg` module.425- DNS resolution in proxy bypass no longer includes the username and426 password in the request. This also fixes the issue of DNS queries427 failing on macOS.428- Properly normalize adapter prefixes for url comparison.429- Passing `None` as a file pointer to the `files` param no longer430 raises an exception.431- Calling `copy` on a `RequestsCookieJar` will now preserve the cookie432 policy correctly.433434**Dependencies**435436- We now support idna v2.7.437- We now support urllib3 v1.23.4384392.18.4 (2017-08-15)440-------------------441442**Improvements**443444- Error messages for invalid headers now include the header name for445 easier debugging446447**Dependencies**448449- We now support idna v2.6.4504512.18.3 (2017-08-02)452-------------------453454**Improvements**455456- Running `$ python -m requests.help` now includes the installed457 version of idna.458459**Bugfixes**460461- Fixed issue where Requests would raise `ConnectionError` instead of462 `SSLError` when encountering SSL problems when using urllib3 v1.22.4634642.18.2 (2017-07-25)465-------------------466467**Bugfixes**468469- `requests.help` no longer fails on Python 2.6 due to the absence of470 `ssl.OPENSSL_VERSION_NUMBER`.471472**Dependencies**473474- We now support urllib3 v1.22.4754762.18.1 (2017-06-14)477-------------------478479**Bugfixes**480481- Fix an error in the packaging whereby the `*.whl` contained482 incorrect data that regressed the fix in v2.17.3.4834842.18.0 (2017-06-14)485-------------------486487**Improvements**488489- `Response` is now a context manager, so can be used directly in a490 `with` statement without first having to be wrapped by491 `contextlib.closing()`.492493**Bugfixes**494495- Resolve installation failure if multiprocessing is not available496- Resolve tests crash if multiprocessing is not able to determine the497 number of CPU cores498- Resolve error swallowing in utils set\_environ generator4995002.17.3 (2017-05-29)501-------------------502503**Improvements**504505- Improved `packages` namespace identity support, for monkeypatching506 libraries.5075082.17.2 (2017-05-29)509-------------------510511**Improvements**512513- Improved `packages` namespace identity support, for monkeypatching514 libraries.5155162.17.1 (2017-05-29)517-------------------518519**Improvements**520521- Improved `packages` namespace identity support, for monkeypatching522 libraries.5235242.17.0 (2017-05-29)525-------------------526527**Improvements**528529- Removal of the 301 redirect cache. This improves thread-safety.5305312.16.5 (2017-05-28)532-------------------533534- Improvements to `$ python -m requests.help`.5355362.16.4 (2017-05-27)537-------------------538539- Introduction of the `$ python -m requests.help` command, for540 debugging with maintainers!5415422.16.3 (2017-05-27)543-------------------544545- Further restored the `requests.packages` namespace for compatibility546 reasons.5475482.16.2 (2017-05-27)549-------------------550551- Further restored the `requests.packages` namespace for compatibility552 reasons.553554No code modification (noted below) should be necessary any longer.5555562.16.1 (2017-05-27)557-------------------558559- Restored the `requests.packages` namespace for compatibility560 reasons.561- Bugfix for `urllib3` version parsing.562563**Note**: code that was written to import against the564`requests.packages` namespace previously will have to import code that565rests at this module-level now.566567For example:568569 from requests.packages.urllib3.poolmanager import PoolManager570571Will need to be re-written to be:572573 from requests.packages import urllib3574 urllib3.poolmanager.PoolManager575576Or, even better:577578 from urllib3.poolmanager import PoolManager5795802.16.0 (2017-05-26)581-------------------582583- Unvendor ALL the things!5845852.15.1 (2017-05-26)586-------------------587588- Everyone makes mistakes.5895902.15.0 (2017-05-26)591-------------------592593**Improvements**594595- Introduction of the `Response.next` property, for getting the next596 `PreparedResponse` from a redirect chain (when597 `allow_redirects=False`).598- Internal refactoring of `__version__` module.599600**Bugfixes**601602- Restored once-optional parameter for603 `requests.utils.get_environ_proxies()`.6046052.14.2 (2017-05-10)606-------------------607608**Bugfixes**609610- Changed a less-than to an equal-to and an or in the dependency611 markers to widen compatibility with older setuptools releases.6126132.14.1 (2017-05-09)614-------------------615616**Bugfixes**617618- Changed the dependency markers to widen compatibility with older pip619 releases.6206212.14.0 (2017-05-09)622-------------------623624**Improvements**625626- It is now possible to pass `no_proxy` as a key to the `proxies`627 dictionary to provide handling similar to the `NO_PROXY` environment628 variable.629- When users provide invalid paths to certificate bundle files or630 directories Requests now raises `IOError`, rather than failing at631 the time of the HTTPS request with a fairly inscrutable certificate632 validation error.633- The behavior of `SessionRedirectMixin` was slightly altered.634 `resolve_redirects` will now detect a redirect by calling635 `get_redirect_target(response)` instead of directly querying636 `Response.is_redirect` and `Response.headers['location']`. Advanced637 users will be able to process malformed redirects more easily.638- Changed the internal calculation of elapsed request time to have639 higher resolution on Windows.640- Added `win_inet_pton` as conditional dependency for the `[socks]`641 extra on Windows with Python 2.7.642- Changed the proxy bypass implementation on Windows: the proxy bypass643 check doesn't use forward and reverse DNS requests anymore644- URLs with schemes that begin with `http` but are not `http` or645 `https` no longer have their host parts forced to lowercase.646647**Bugfixes**648649- Much improved handling of non-ASCII `Location` header values in650 redirects. Fewer `UnicodeDecodeErrors` are encountered on Python 2,651 and Python 3 now correctly understands that Latin-1 is unlikely to652 be the correct encoding.653- If an attempt to `seek` file to find out its length fails, we now654 appropriately handle that by aborting our content-length655 calculations.656- Restricted `HTTPDigestAuth` to only respond to auth challenges made657 on 4XX responses, rather than to all auth challenges.658- Fixed some code that was firing `DeprecationWarning` on Python 3.6.659- The dismayed person emoticon (`/o\\`) no longer has a big head. I'm660 sure this is what you were all worrying about most.661662**Miscellaneous**663664- Updated bundled urllib3 to v1.21.1.665- Updated bundled chardet to v3.0.2.666- Updated bundled idna to v2.5.667- Updated bundled certifi to 2017.4.17.6686692.13.0 (2017-01-24)670-------------------671672**Features**673674- Only load the `idna` library when we've determined we need it. This675 will save some memory for users.676677**Miscellaneous**678679- Updated bundled urllib3 to 1.20.680- Updated bundled idna to 2.2.6816822.12.5 (2017-01-18)683-------------------684685**Bugfixes**686687- Fixed an issue with JSON encoding detection, specifically detecting688 big-endian UTF-32 with BOM.6896902.12.4 (2016-12-14)691-------------------692693**Bugfixes**694695- Fixed regression from 2.12.2 where non-string types were rejected in696 the basic auth parameters. While support for this behaviour has beenfix minor typos (#5934)Kevin Kirschebefore adoptionfc106ab
line 697why, one step back697 re-added, the behaviour is deprecated and will be removed in theupdating usage informationNate Prewittbefore adoptiondaa2b29
lines 698–1930why, one step back698 future.6997002.12.3 (2016-12-01)701-------------------702703**Bugfixes**704705- Fixed regression from v2.12.1 for URLs with schemes that begin with706 "http". These URLs have historically been processed as though they707 were HTTP-schemed URLs, and so have had parameters added. This was708 removed in v2.12.2 in an overzealous attempt to resolve problems709 with IDNA-encoding those URLs. This change was reverted: the other710 fixes for IDNA-encoding have been judged to be sufficient to return711 to the behaviour Requests had before v2.12.0.7127132.12.2 (2016-11-30)714-------------------715716**Bugfixes**717718- Fixed several issues with IDNA-encoding URLs that are technically719 invalid but which are widely accepted. Requests will now attempt to720 IDNA-encode a URL if it can but, if it fails, and the host contains721 only ASCII characters, it will be passed through optimistically.722 This will allow users to opt-in to using IDNA2003 themselves if they723 want to, and will also allow technically invalid but still common724 hostnames.725- Fixed an issue where URLs with leading whitespace would raise726 `InvalidSchema` errors.727- Fixed an issue where some URLs without the HTTP or HTTPS schemes728 would still have HTTP URL preparation applied to them.729- Fixed an issue where Unicode strings could not be used in basic730 auth.731- Fixed an issue encountered by some Requests plugins where732 constructing a Response object would cause `Response.content` to733 raise an `AttributeError`.7347352.12.1 (2016-11-16)736-------------------737738**Bugfixes**739740- Updated setuptools 'security' extra for the new PyOpenSSL backend in741 urllib3.742743**Miscellaneous**744745- Updated bundled urllib3 to 1.19.1.7467472.12.0 (2016-11-15)748-------------------749750**Improvements**751752- Updated support for internationalized domain names from IDNA2003 to753 IDNA2008. This updated support is required for several forms of IDNs754 and is mandatory for .de domains.755- Much improved heuristics for guessing content lengths: Requests will756 no longer read an entire `StringIO` into memory.757- Much improved logic for recalculating `Content-Length` headers for758 `PreparedRequest` objects.759- Improved tolerance for file-like objects that have no `tell` method760 but do have a `seek` method.761- Anything that is a subclass of `Mapping` is now treated like a762 dictionary by the `data=` keyword argument.763- Requests now tolerates empty passwords in proxy credentials, rather764 than stripping the credentials.765- If a request is made with a file-like object as the body and that766 request is redirected with a 307 or 308 status code, Requests will767 now attempt to rewind the body object so it can be replayed.768769**Bugfixes**770771- When calling `response.close`, the call to `close` will be772 propagated through to non-urllib3 backends.773- Fixed issue where the `ALL_PROXY` environment variable would be774 preferred over scheme-specific variables like `HTTP_PROXY`.775- Fixed issue where non-UTF8 reason phrases got severely mangled by776 falling back to decoding using ISO 8859-1 instead.777- Fixed a bug where Requests would not correctly correlate cookies set778 when using custom Host headers if those Host headers did not use the779 native string type for the platform.780781**Miscellaneous**782783- Updated bundled urllib3 to 1.19.784- Updated bundled certifi certs to 2016.09.26.7857862.11.1 (2016-08-17)787-------------------788789**Bugfixes**790791- Fixed a bug when using `iter_content` with `decode_unicode=True` for792 streamed bodies would raise `AttributeError`. This bug was793 introduced in 2.11.794- Strip Content-Type and Transfer-Encoding headers from the header795 block when following a redirect that transforms the verb from796 POST/PUT to GET.7977982.11.0 (2016-08-08)799-------------------800801**Improvements**802803- Added support for the `ALL_PROXY` environment variable.804- Reject header values that contain leading whitespace or newline805 characters to reduce risk of header smuggling.806807**Bugfixes**808809- Fixed occasional `TypeError` when attempting to decode a JSON810 response that occurred in an error case. Now correctly returns a811 `ValueError`.812- Requests would incorrectly ignore a non-CIDR IP address in the813 `NO_PROXY` environment variables: Requests now treats it as a814 specific IP.815- Fixed a bug when sending JSON data that could cause us to encounter816 obscure OpenSSL errors in certain network conditions (yes, really).817- Added type checks to ensure that `iter_content` only accepts818 integers and `None` for chunk sizes.819- Fixed issue where responses whose body had not been fully consumed820 would have the underlying connection closed but not returned to the821 connection pool, which could cause Requests to hang in situations822 where the `HTTPAdapter` had been configured to use a blocking823 connection pool.824825**Miscellaneous**826827- Updated bundled urllib3 to 1.16.828- Some previous releases accidentally accepted non-strings as829 acceptable header values. This release does not.8308312.10.0 (2016-04-29)832-------------------833834**New Features**835836- SOCKS Proxy Support! (requires PySocks;837 `$ pip install requests[socks]`)838839**Miscellaneous**840841- Updated bundled urllib3 to 1.15.1.8428432.9.2 (2016-04-29)844------------------845846**Improvements**847848- Change built-in CaseInsensitiveDict (used for headers) to use849 OrderedDict as its underlying datastore.850851**Bugfixes**852853- Don't use redirect\_cache if allow\_redirects=False854- When passed objects that throw exceptions from `tell()`, send them855 via chunked transfer encoding instead of failing.856- Raise a ProxyError for proxy related connection issues.8578582.9.1 (2015-12-21)859------------------860861**Bugfixes**862863- Resolve regression introduced in 2.9.0 that made it impossible to864 send binary strings as bodies in Python 3.865- Fixed errors when calculating cookie expiration dates in certain866 locales.867868**Miscellaneous**869870- Updated bundled urllib3 to 1.13.1.8718722.9.0 (2015-12-15)873------------------874875**Minor Improvements** (Backwards compatible)876877- The `verify` keyword argument now supports being passed a path to a878 directory of CA certificates, not just a single-file bundle.879- Warnings are now emitted when sending files opened in text mode.880- Added the 511 Network Authentication Required status code to the881 status code registry.882883**Bugfixes**884885- For file-like objects that are not sought to the very beginning, we886 now send the content length for the number of bytes we will actually887 read, rather than the total size of the file, allowing partial file888 uploads.889- When uploading file-like objects, if they are empty or have no890 obvious content length we set `Transfer-Encoding: chunked` rather891 than `Content-Length: 0`.892- We correctly receive the response in buffered mode when uploading893 chunked bodies.894- We now handle being passed a query string as a bytestring on Python895 3, by decoding it as UTF-8.896- Sessions are now closed in all cases (exceptional and not) when897 using the functional API rather than leaking and waiting for the898 garbage collector to clean them up.899- Correctly handle digest auth headers with a malformed `qop`900 directive that contains no token, by treating it the same as if no901 `qop` directive was provided at all.902- Minor performance improvements when removing specific cookies by903 name.904905**Miscellaneous**906907- Updated urllib3 to 1.13.9089092.8.1 (2015-10-13)910------------------911912**Bugfixes**913914- Update certificate bundle to match `certifi` 2015.9.6.2's weak915 certificate bundle.916- Fix a bug in 2.8.0 where requests would raise `ConnectTimeout`917 instead of `ConnectionError`918- When using the PreparedRequest flow, requests will now correctly919 respect the `json` parameter. Broken in 2.8.0.920- When using the PreparedRequest flow, requests will now correctly921 handle a Unicode-string method name on Python 2. Broken in 2.8.0.9229232.8.0 (2015-10-05)924------------------925926**Minor Improvements** (Backwards Compatible)927928- Requests now supports per-host proxies. This allows the `proxies`929 dictionary to have entries of the form930 `{'<scheme>://<hostname>': '<proxy>'}`. Host-specific proxies will931 be used in preference to the previously-supported scheme-specific932 ones, but the previous syntax will continue to work.933- `Response.raise_for_status` now prints the URL that failed as part934 of the exception message.935- `requests.utils.get_netrc_auth` now takes an `raise_errors` kwarg,936 defaulting to `False`. When `True`, errors parsing `.netrc` files937 cause exceptions to be thrown.938- Change to bundled projects import logic to make it easier to939 unbundle requests downstream.940- Changed the default User-Agent string to avoid leaking data on941 Linux: now contains only the requests version.942943**Bugfixes**944945- The `json` parameter to `post()` and friends will now only be used946 if neither `data` nor `files` are present, consistent with the947 documentation.948- We now ignore empty fields in the `NO_PROXY` environment variable.949- Fixed problem where `httplib.BadStatusLine` would get raised if950 combining `stream=True` with `contextlib.closing`.951- Prevented bugs where we would attempt to return the same connection952 back to the connection pool twice when sending a Chunked body.953- Miscellaneous minor internal changes.954- Digest Auth support is now thread safe.955956**Updates**957958- Updated urllib3 to 1.12.9599602.7.0 (2015-05-03)961------------------962963This is the first release that follows our new release process. For964more, see [our965documentation](https://requests.readthedocs.io/en/latest/community/release-process/).966967**Bugfixes**968969- Updated urllib3 to 1.10.4, resolving several bugs involving chunked970 transfer encoding and response framing.9719722.6.2 (2015-04-23)973------------------974975**Bugfixes**976977- Fix regression where compressed data that was sent as chunked data978 was not properly decompressed. (\#2561)9799802.6.1 (2015-04-22)981------------------982983**Bugfixes**984985- Remove VendorAlias import machinery introduced in v2.5.2.986- Simplify the PreparedRequest.prepare API: We no longer require the987 user to pass an empty list to the hooks keyword argument. (c.f.988 \#2552)989- Resolve redirects now receives and forwards all of the original990 arguments to the adapter. (\#2503)991- Handle UnicodeDecodeErrors when trying to deal with a unicode URL992 that cannot be encoded in ASCII. (\#2540)993- Populate the parsed path of the URI field when performing Digest994 Authentication. (\#2426)995- Copy a PreparedRequest's CookieJar more reliably when it is not an996 instance of RequestsCookieJar. (\#2527)9979982.6.0 (2015-03-14)999------------------10001001**Bugfixes**10021003- CVE-2015-2296: Fix handling of cookies on redirect. Previously a1004 cookie without a host value set would use the hostname for the1005 redirected URL exposing requests users to session fixation attacks1006 and potentially cookie stealing. This was disclosed privately by1007 Matthew Daley of [BugFuzz](https://bugfuzz.com). This affects all1008 versions of requests from v2.1.0 to v2.5.3 (inclusive on both ends).1009- Fix error when requests is an `install_requires` dependency and1010 `python setup.py test` is run. (\#2462)1011- Fix error when urllib3 is unbundled and requests continues to use1012 the vendored import location.1013- Include fixes to `urllib3`'s header handling.1014- Requests' handling of unvendored dependencies is now more1015 restrictive.10161017**Features and Improvements**10181019- Support bytearrays when passed as parameters in the `files`1020 argument. (\#2468)1021- Avoid data duplication when creating a request with `str`, `bytes`,1022 or `bytearray` input to the `files` argument.102310242.5.3 (2015-02-24)1025------------------10261027**Bugfixes**10281029- Revert changes to our vendored certificate bundle. For more context1030 see (\#2455, \#2456, and <https://bugs.python.org/issue23476>)103110322.5.2 (2015-02-23)1033------------------10341035**Features and Improvements**10361037- Add sha256 fingerprint support.1038 ([shazow/urllib3\#540](https://github.com/shazow/urllib3/pull/540))1039- Improve the performance of headers.1040 ([shazow/urllib3\#544](https://github.com/shazow/urllib3/pull/544))10411042**Bugfixes**10431044- Copy pip's import machinery. When downstream redistributors remove1045 requests.packages.urllib3 the import machinery will continue to let1046 those same symbols work. Example usage in requests' documentation1047 and 3rd-party libraries relying on the vendored copies of urllib31048 will work without having to fallback to the system urllib3.1049- Attempt to quote parts of the URL on redirect if unquoting and then1050 quoting fails. (\#2356)1051- Fix filename type check for multipart form-data uploads. (\#2411)1052- Properly handle the case where a server issuing digest1053 authentication challenges provides both auth and auth-int1054 qop-values. (\#2408)1055- Fix a socket leak.1056 ([shazow/urllib3\#549](https://github.com/shazow/urllib3/pull/549))1057- Fix multiple `Set-Cookie` headers properly.1058 ([shazow/urllib3\#534](https://github.com/shazow/urllib3/pull/534))1059- Disable the built-in hostname verification.1060 ([shazow/urllib3\#526](https://github.com/shazow/urllib3/pull/526))1061- Fix the behaviour of decoding an exhausted stream.1062 ([shazow/urllib3\#535](https://github.com/shazow/urllib3/pull/535))10631064**Security**10651066- Pulled in an updated `cacert.pem`.1067- Drop RC4 from the default cipher list.1068 ([shazow/urllib3\#551](https://github.com/shazow/urllib3/pull/551))106910702.5.1 (2014-12-23)1071------------------10721073**Behavioural Changes**10741075- Only catch HTTPErrors in raise\_for\_status (\#2382)10761077**Bugfixes**10781079- Handle LocationParseError from urllib3 (\#2344)1080- Handle file-like object filenames that are not strings (\#2379)1081- Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated1082 (\#2389)108310842.5.0 (2014-12-01)1085------------------10861087**Improvements**10881089- Allow usage of urllib3's Retry object with HTTPAdapters (\#2216)1090- The `iter_lines` method on a response now accepts a delimiter with1091 which to split the content (\#2295)10921093**Behavioural Changes**10941095- Add deprecation warnings to functions in requests.utils that will be1096 removed in 3.0 (\#2309)1097- Sessions used by the functional API are always closed (\#2326)1098- Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9)1099 (\#2323)11001101**Bugfixes**11021103- Only parse the URL once (\#2353)1104- Allow Content-Length header to always be overridden (\#2332)1105- Properly handle files in HTTPDigestAuth (\#2333)1106- Cap redirect\_cache size to prevent memory abuse (\#2299)1107- Fix HTTPDigestAuth handling of redirects after authenticating1108 successfully (\#2253)1109- Fix crash with custom method parameter to Session.request (\#2317)1110- Fix how Link headers are parsed using the regular expression library1111 (\#2271)11121113**Documentation**11141115- Add more references for interlinking (\#2348)1116- Update CSS for theme (\#2290)1117- Update width of buttons and sidebar (\#2289)1118- Replace references of Gittip with Gratipay (\#2282)1119- Add link to changelog in sidebar (\#2273)112011212.4.3 (2014-10-06)1122------------------11231124**Bugfixes**11251126- Unicode URL improvements for Python 2.1127- Re-order JSON param for backwards compat.1128- Automatically defrag authentication schemes from host/pass URIs.1129 ([\#2249](https://github.com/psf/requests/issues/2249))113011312.4.2 (2014-10-05)1132------------------11331134**Improvements**11351136- FINALLY! Add json parameter for uploads!1137 ([\#2258](https://github.com/psf/requests/pull/2258))1138- Support for bytestring URLs on Python 3.x1139 ([\#2238](https://github.com/psf/requests/pull/2238))11401141**Bugfixes**11421143- Avoid getting stuck in a loop1144 ([\#2244](https://github.com/psf/requests/pull/2244))1145- Multiple calls to iter\* fail with unhelpful error.1146 ([\#2240](https://github.com/psf/requests/issues/2240),1147 [\#2241](https://github.com/psf/requests/issues/2241))11481149**Documentation**11501151- Correct redirection introduction1152 ([\#2245](https://github.com/psf/requests/pull/2245/))1153- Added example of how to send multiple files in one request.1154 ([\#2227](https://github.com/psf/requests/pull/2227/))1155- Clarify how to pass a custom set of CAs1156 ([\#2248](https://github.com/psf/requests/pull/2248/))115711582.4.1 (2014-09-09)1159------------------11601161- Now has a "security" package extras set,1162 `$ pip install requests[security]`1163- Requests will now use Certifi if it is available.1164- Capture and re-raise urllib3 ProtocolError1165- Bugfix for responses that attempt to redirect to themselves forever1166 (wtf?).116711682.4.0 (2014-08-29)1169------------------11701171**Behavioral Changes**11721173- `Connection: keep-alive` header is now sent automatically.11741175**Improvements**11761177- Support for connect timeouts! Timeout now accepts a tuple (connect,1178 read) which is used to set individual connect and read timeouts.1179- Allow copying of PreparedRequests without headers/cookies.1180- Updated bundled urllib3 version.1181- Refactored settings loading from environment -- new1182 Session.merge\_environment\_settings.1183- Handle socket errors in iter\_content.118411852.3.0 (2014-05-16)1186------------------11871188**API Changes**11891190- New `Response` property `is_redirect`, which is true when the1191 library could have processed this response as a redirection (whether1192 or not it actually did).1193- The `timeout` parameter now affects requests with both `stream=True`1194 and `stream=False` equally.1195- The change in v2.0.0 to mandate explicit proxy schemes has been1196 reverted. Proxy schemes now default to `http://`.1197- The `CaseInsensitiveDict` used for HTTP headers now behaves like a1198 normal dictionary when references as string or viewed in the1199 interpreter.12001201**Bugfixes**12021203- No longer expose Authorization or Proxy-Authorization headers on1204 redirect. Fix CVE-2014-1829 and CVE-2014-1830 respectively.1205- Authorization is re-evaluated each redirect.1206- On redirect, pass url as native strings.1207- Fall-back to autodetected encoding for JSON when Unicode detection1208 fails.1209- Headers set to `None` on the `Session` are now correctly not sent.1210- Correctly honor `decode_unicode` even if it wasn't used earlier in1211 the same response.1212- Stop advertising `compress` as a supported Content-Encoding.1213- The `Response.history` parameter is now always a list.1214- Many, many `urllib3` bugfixes.121512162.2.1 (2014-01-23)1217------------------12181219**Bugfixes**12201221- Fixes incorrect parsing of proxy credentials that contain a literal1222 or encoded '\#' character.1223- Assorted urllib3 fixes.122412252.2.0 (2014-01-09)1226------------------12271228**API Changes**12291230- New exception: `ContentDecodingError`. Raised instead of `urllib3`1231 `DecodeError` exceptions.12321233**Bugfixes**12341235- Avoid many many exceptions from the buggy implementation of1236 `proxy_bypass` on OS X in Python 2.6.1237- Avoid crashing when attempting to get authentication credentials1238 from \~/.netrc when running as a user without a home directory.1239- Use the correct pool size for pools of connections to proxies.1240- Fix iteration of `CookieJar` objects.1241- Ensure that cookies are persisted over redirect.1242- Switch back to using chardet, since it has merged with charade.124312442.1.0 (2013-12-05)1245------------------12461247- Updated CA Bundle, of course.1248- Cookies set on individual Requests through a `Session` (e.g. via1249 `Session.get()`) are no longer persisted to the `Session`.1250- Clean up connections when we hit problems during chunked upload,1251 rather than leaking them.1252- Return connections to the pool when a chunked upload is successful,1253 rather than leaking it.1254- Match the HTTPbis recommendation for HTTP 301 redirects.1255- Prevent hanging when using streaming uploads and Digest Auth when a1256 401 is received.1257- Values of headers set by Requests are now always the native string1258 type.1259- Fix previously broken SNI support.1260- Fix accessing HTTP proxies using proxy authentication.1261- Unencode HTTP Basic usernames and passwords extracted from URLs.1262- Support for IP address ranges for no\_proxy environment variable1263- Parse headers correctly when users override the default `Host:`1264 header.1265- Avoid munging the URL in case of case-sensitive servers.1266- Looser URL handling for non-HTTP/HTTPS urls.1267- Accept unicode methods in Python 2.6 and 2.7.1268- More resilient cookie handling.1269- Make `Response` objects pickleable.1270- Actually added MD5-sess to Digest Auth instead of pretending to like1271 last time.1272- Updated internal urllib3.1273- Fixed @Lukasa's lack of taste.127412752.0.1 (2013-10-24)1276------------------12771278- Updated included CA Bundle with new mistrusts and automated process1279 for the future1280- Added MD5-sess to Digest Auth1281- Accept per-file headers in multipart file POST messages.1282- Fixed: Don't send the full URL on CONNECT messages.1283- Fixed: Correctly lowercase a redirect scheme.1284- Fixed: Cookies not persisted when set via functional API.1285- Fixed: Translate urllib3 ProxyError into a requests ProxyError1286 derived from ConnectionError.1287- Updated internal urllib3 and chardet.128812892.0.0 (2013-09-24)1290------------------12911292**API Changes:**12931294- Keys in the Headers dictionary are now native strings on all Python1295 versions, i.e. bytestrings on Python 2, unicode on Python 3.1296- Proxy URLs now *must* have an explicit scheme. A `MissingSchema`1297 exception will be raised if they don't.1298- Timeouts now apply to read time if `Stream=False`.1299- `RequestException` is now a subclass of `IOError`, not1300 `RuntimeError`.1301- Added new method to `PreparedRequest` objects:1302 `PreparedRequest.copy()`.1303- Added new method to `Session` objects: `Session.update_request()`.1304 This method updates a `Request` object with the data (e.g. cookies)1305 stored on the `Session`.1306- Added new method to `Session` objects: `Session.prepare_request()`.1307 This method updates and prepares a `Request` object, and returns the1308 corresponding `PreparedRequest` object.1309- Added new method to `HTTPAdapter` objects:1310 `HTTPAdapter.proxy_headers()`. This should not be called directly,1311 but improves the subclass interface.1312- `httplib.IncompleteRead` exceptions caused by incorrect chunked1313 encoding will now raise a Requests `ChunkedEncodingError` instead.1314- Invalid percent-escape sequences now cause a Requests `InvalidURL`1315 exception to be raised.1316- HTTP 208 no longer uses reason phrase `"im_used"`. Correctly uses1317 `"already_reported"`.1318- HTTP 226 reason added (`"im_used"`).13191320**Bugfixes:**13211322- Vastly improved proxy support, including the CONNECT verb. Special1323 thanks to the many contributors who worked towards this improvement.1324- Cookies are now properly managed when 401 authentication responses1325 are received.1326- Chunked encoding fixes.1327- Support for mixed case schemes.1328- Better handling of streaming downloads.1329- Retrieve environment proxies from more locations.1330- Minor cookies fixes.1331- Improved redirect behaviour.1332- Improved streaming behaviour, particularly for compressed data.1333- Miscellaneous small Python 3 text encoding bugs.1334- `.netrc` no longer overrides explicit auth.1335- Cookies set by hooks are now correctly persisted on Sessions.1336- Fix problem with cookies that specify port numbers in their host1337 field.1338- `BytesIO` can be used to perform streaming uploads.1339- More generous parsing of the `no_proxy` environment variable.1340- Non-string objects can be passed in data values alongside files.134113421.2.3 (2013-05-25)1343------------------13441345- Simple packaging fix134613471.2.2 (2013-05-23)1348------------------13491350- Simple packaging fix135113521.2.1 (2013-05-20)1353------------------13541355- 301 and 302 redirects now change the verb to GET for all verbs, not1356 just POST, improving browser compatibility.1357- Python 3.3.2 compatibility1358- Always percent-encode location headers1359- Fix connection adapter matching to be most-specific first1360- new argument to the default connection adapter for passing a block1361 argument1362- prevent a KeyError when there's no link headers136313641.2.0 (2013-03-31)1365------------------13661367- Fixed cookies on sessions and on requests1368- Significantly change how hooks are dispatched - hooks now receive1369 all the arguments specified by the user when making a request so1370 hooks can make a secondary request with the same parameters. This is1371 especially necessary for authentication handler authors1372- certifi support was removed1373- Fixed bug where using OAuth 1 with body `signature_type` sent no1374 data1375- Major proxy work thanks to @Lukasa including parsing of proxy1376 authentication from the proxy url1377- Fix DigestAuth handling too many 401s1378- Update vendored urllib3 to include SSL bug fixes1379- Allow keyword arguments to be passed to `json.loads()` via the1380 `Response.json()` method1381- Don't send `Content-Length` header by default on `GET` or `HEAD`1382 requests1383- Add `elapsed` attribute to `Response` objects to time how long a1384 request took.1385- Fix `RequestsCookieJar`1386- Sessions and Adapters are now picklable, i.e., can be used with the1387 multiprocessing library1388- Update charade to version 1.0.313891390The change in how hooks are dispatched will likely cause a great deal of1391issues.139213931.1.0 (2013-01-10)1394------------------13951396- CHUNKED REQUESTS1397- Support for iterable response bodies1398- Assume servers persist redirect params1399- Allow explicit content types to be specified for file data1400- Make merge\_kwargs case-insensitive when looking up keys140114021.0.3 (2012-12-18)1403------------------14041405- Fix file upload encoding bug1406- Fix cookie behavior140714081.0.2 (2012-12-17)1409------------------14101411- Proxy fix for HTTPAdapter.141214131.0.1 (2012-12-17)1414------------------14151416- Cert verification exception bug.1417- Proxy fix for HTTPAdapter.141814191.0.0 (2012-12-17)1420------------------14211422- Massive Refactor and Simplification1423- Switch to Apache 2.0 license1424- Swappable Connection Adapters1425- Mountable Connection Adapters1426- Mutable ProcessedRequest chain1427- /s/prefetch/stream1428- Removal of all configuration1429- Standard library logging1430- Make Response.json() callable, not property.1431- Usage of new charade project, which provides python 2 and 31432 simultaneous chardet.1433- Removal of all hooks except 'response'1434- Removal of all authentication helpers (OAuth, Kerberos)14351436This is not a backwards compatible change.143714380.14.2 (2012-10-27)1439-------------------14401441- Improved mime-compatible JSON handling1442- Proxy fixes1443- Path hack fixes1444- Case-Insensitive Content-Encoding headers1445- Support for CJK parameters in form posts144614470.14.1 (2012-10-01)1448-------------------14491450- Python 3.3 Compatibility1451- Simply default accept-encoding1452- Bugfixes145314540.14.0 (2012-09-02)1455-------------------14561457- No more iter\_content errors if already downloaded.145814590.13.9 (2012-08-25)1460-------------------14611462- Fix for OAuth + POSTs1463- Remove exception eating from dispatch\_hook1464- General bugfixes146514660.13.8 (2012-08-21)1467-------------------14681469- Incredible Link header support :)147014710.13.7 (2012-08-19)1472-------------------14731474- Support for (key, value) lists everywhere.1475- Digest Authentication improvements.1476- Ensure proxy exclusions work properly.1477- Clearer UnicodeError exceptions.1478- Automatic casting of URLs to strings (fURL and such)1479- Bugfixes.148014810.13.6 (2012-08-06)1482-------------------14831484- Long awaited fix for hanging connections!148514860.13.5 (2012-07-27)1487-------------------14881489- Packaging fix149014910.13.4 (2012-07-27)1492-------------------14931494- GSSAPI/Kerberos authentication!1495- App Engine 2.7 Fixes!1496- Fix leaking connections (from urllib3 update)1497- OAuthlib path hack fix1498- OAuthlib URL parameters fix.149915000.13.3 (2012-07-12)1501-------------------15021503- Use simplejson if available.1504- Do not hide SSLErrors behind Timeouts.1505- Fixed param handling with urls containing fragments.1506- Significantly improved information in User Agent.1507- client certificates are ignored when verify=False150815090.13.2 (2012-06-28)1510-------------------15111512- Zero dependencies (once again)!1513- New: Response.reason1514- Sign querystring parameters in OAuth 1.01515- Client certificates no longer ignored when verify=False1516- Add openSUSE certificate support151715180.13.1 (2012-06-07)1519-------------------15201521- Allow passing a file or file-like object as data.1522- Allow hooks to return responses that indicate errors.1523- Fix Response.text and Response.json for body-less responses.152415250.13.0 (2012-05-29)1526-------------------15271528- Removal of Requests.async in favor of1529 [grequests](https://github.com/kennethreitz/grequests)1530- Allow disabling of cookie persistence.1531- New implementation of safe\_mode1532- cookies.get now supports default argument1533- Session cookies not saved when Session.request is called with1534 return\_response=False1535- Env: no\_proxy support.1536- RequestsCookieJar improvements.1537- Various bug fixes.153815390.12.1 (2012-05-08)1540-------------------15411542- New `Response.json` property.1543- Ability to add string file uploads.1544- Fix out-of-range issue with iter\_lines.1545- Fix iter\_content default size.1546- Fix POST redirects containing files.154715480.12.0 (2012-05-02)1549-------------------15501551- EXPERIMENTAL OAUTH SUPPORT!1552- Proper CookieJar-backed cookies interface with awesome dict-like1553 interface.1554- Speed fix for non-iterated content chunks.1555- Move `pre_request` to a more usable place.1556- New `pre_send` hook.1557- Lazily encode data, params, files.1558- Load system Certificate Bundle if `certify` isn't available.1559- Cleanups, fixes.156015610.11.2 (2012-04-22)1562-------------------15631564- Attempt to use the OS's certificate bundle if `certifi` isn't1565 available.1566- Infinite digest auth redirect fix.1567- Multi-part file upload improvements.1568- Fix decoding of invalid %encodings in URLs.1569- If there is no content in a response don't throw an error the second1570 time that content is attempted to be read.1571- Upload data on redirects.157215730.11.1 (2012-03-30)1574-------------------15751576- POST redirects now break RFC to do what browsers do: Follow up with1577 a GET.1578- New `strict_mode` configuration to disable new redirect behavior.157915800.11.0 (2012-03-14)1581-------------------15821583- Private SSL Certificate support1584- Remove select.poll from Gevent monkeypatching1585- Remove redundant generator for chunked transfer encoding1586- Fix: Response.ok raises Timeout Exception in safe\_mode158715880.10.8 (2012-03-09)1589-------------------15901591- Generate chunked ValueError fix1592- Proxy configuration by environment variables1593- Simplification of iter\_lines.1594- New trust\_env configuration for disabling system/environment hints.1595- Suppress cookie errors.159615970.10.7 (2012-03-07)1598-------------------15991600- encode\_uri = False160116020.10.6 (2012-02-25)1603-------------------16041605- Allow '=' in cookies.160616070.10.5 (2012-02-25)1608-------------------16091610- Response body with 0 content-length fix.1611- New async.imap.1612- Don't fail on netrc.161316140.10.4 (2012-02-20)1615-------------------16161617- Honor netrc.161816190.10.3 (2012-02-20)1620-------------------16211622- HEAD requests don't follow redirects anymore.1623- raise\_for\_status() doesn't raise for 3xx anymore.1624- Make Session objects picklable.1625- ValueError for invalid schema URLs.162616270.10.2 (2012-01-15)1628-------------------16291630- Vastly improved URL quoting.1631- Additional allowed cookie key values.1632- Attempted fix for "Too many open files" Error1633- Replace unicode errors on first pass, no need for second pass.1634- Append '/' to bare-domain urls before query insertion.1635- Exceptions now inherit from RuntimeError.1636- Binary uploads + auth fix.1637- Bugfixes.163816390.10.1 (2012-01-23)1640-------------------16411642- PYTHON 3 SUPPORT!1643- Dropped 2.5 Support. (*Backwards Incompatible*)164416450.10.0 (2012-01-21)1646-------------------16471648- `Response.content` is now bytes-only. (*Backwards Incompatible*)1649- New `Response.text` is unicode-only.1650- If no `Response.encoding` is specified and `chardet` is available,1651 `Response.text` will guess an encoding.1652- Default to ISO-8859-1 (Western) encoding for "text" subtypes.1653- Removal of decode\_unicode. (*Backwards Incompatible*)1654- New multiple-hooks system.1655- New `Response.register_hook` for registering hooks within the1656 pipeline.1657- `Response.url` is now Unicode.165816590.9.3 (2012-01-18)1660------------------16611662- SSL verify=False bugfix (apparent on windows machines).166316640.9.2 (2012-01-18)1665------------------16661667- Asynchronous async.send method.1668- Support for proper chunk streams with boundaries.1669- session argument for Session classes.1670- Print entire hook tracebacks, not just exception instance.1671- Fix response.iter\_lines from pending next line.1672- Fix but in HTTP-digest auth w/ URI having query strings.1673- Fix in Event Hooks section.1674- Urllib3 update.167516760.9.1 (2012-01-06)1677------------------16781679- danger\_mode for automatic Response.raise\_for\_status()1680- Response.iter\_lines refactor168116820.9.0 (2011-12-28)1683------------------16841685- verify ssl is default.168616870.8.9 (2011-12-28)1688------------------16891690- Packaging fix.169116920.8.8 (2011-12-28)1693------------------16941695- SSL CERT VERIFICATION!1696- Release of Cerifi: Mozilla's cert list.1697- New 'verify' argument for SSL requests.1698- Urllib3 update.169917000.8.7 (2011-12-24)1701------------------17021703- iter\_lines last-line truncation fix1704- Force safe\_mode for async requests1705- Handle safe\_mode exceptions more consistently1706- Fix iteration on null responses in safe\_mode170717080.8.6 (2011-12-18)1709------------------17101711- Socket timeout fixes.1712- Proxy Authorization support.171317140.8.5 (2011-12-14)1715------------------17161717- Response.iter\_lines!171817190.8.4 (2011-12-11)1720------------------17211722- Prefetch bugfix.1723- Added license to installed version.172417250.8.3 (2011-11-27)1726------------------17271728- Converted auth system to use simpler callable objects.1729- New session parameter to API methods.1730- Display full URL while logging.173117320.8.2 (2011-11-19)1733------------------17341735- New Unicode decoding system, based on over-ridable1736 Response.encoding.1737- Proper URL slash-quote handling.1738- Cookies with `[`, `]`, and `_` allowed.173917400.8.1 (2011-11-15)1741------------------17421743- URL Request path fix1744- Proxy fix.1745- Timeouts fix.174617470.8.0 (2011-11-13)1748------------------17491750- Keep-alive support!1751- Complete removal of Urllib21752- Complete removal of Poster1753- Complete removal of CookieJars1754- New ConnectionError raising1755- Safe\_mode for error catching1756- prefetch parameter for request methods1757- OPTION method1758- Async pool size throttling1759- File uploads send real names1760- Vendored in urllib3176117620.7.6 (2011-11-07)1763------------------17641765- Digest authentication bugfix (attach query data to path)176617670.7.5 (2011-11-04)1768------------------17691770- Response.content = None if there was an invalid response.1771- Redirection auth handling.177217730.7.4 (2011-10-26)1774------------------17751776- Session Hooks fix.177717780.7.3 (2011-10-23)1779------------------17801781- Digest Auth fix.178217830.7.2 (2011-10-23)1784------------------17851786- PATCH Fix.178717880.7.1 (2011-10-23)1789------------------17901791- Move away from urllib2 authentication handling.1792- Fully Remove AuthManager, AuthObject, &c.1793- New tuple-based auth system with handler callbacks.179417950.7.0 (2011-10-22)1796------------------17971798- Sessions are now the primary interface.1799- Deprecated InvalidMethodException.1800- PATCH fix.1801- New config system (no more global settings).180218030.6.6 (2011-10-19)1804------------------18051806- Session parameter bugfix (params merging).180718080.6.5 (2011-10-18)1809------------------18101811- Offline (fast) test suite.1812- Session dictionary argument merging.181318140.6.4 (2011-10-13)1815------------------18161817- Automatic decoding of unicode, based on HTTP Headers.1818- New `decode_unicode` setting.1819- Removal of `r.read/close` methods.1820- New `r.faw` interface for advanced response usage.\*1821- Automatic expansion of parameterized headers.182218230.6.3 (2011-10-13)1824------------------18251826- Beautiful `requests.async` module, for making async requests w/1827 gevent.182818290.6.2 (2011-10-09)1830------------------18311832- GET/HEAD obeys allow\_redirects=False.183318340.6.1 (2011-08-20)1835------------------18361837- Enhanced status codes experience `\o/`1838- Set a maximum number of redirects (`settings.max_redirects`)1839- Full Unicode URL support1840- Support for protocol-less redirects.1841- Allow for arbitrary request types.1842- Bugfixes184318440.6.0 (2011-08-17)1845------------------18461847- New callback hook system1848- New persistent sessions object and context manager1849- Transparent Dict-cookie handling1850- Status code reference object1851- Removed Response.cached1852- Added Response.request1853- All args are kwargs1854- Relative redirect support1855- HTTPError handling improvements1856- Improved https testing1857- Bugfixes185818590.5.1 (2011-07-23)1860------------------18611862- International Domain Name Support!1863- Access headers without fetching entire body (`read()`)1864- Use lists as dicts for parameters1865- Add Forced Basic Authentication1866- Forced Basic is default authentication type1867- `python-requests.org` default User-Agent header1868- CaseInsensitiveDict lower-case caching1869- Response.history bugfix187018710.5.0 (2011-06-21)1872------------------18731874- PATCH Support1875- Support for Proxies1876- HTTPBin Test Suite1877- Redirect Fixes1878- settings.verbose stream writing1879- Querystrings for all methods1880- URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as1881 explicitly raised1882 `r.requests.get('hwe://blah'); r.raise_for_status()`188318840.4.1 (2011-05-22)1885------------------18861887- Improved Redirection Handling1888- New 'allow\_redirects' param for following non-GET/HEAD Redirects1889- Settings module refactoring189018910.4.0 (2011-05-15)1892------------------18931894- Response.history: list of redirected responses1895- Case-Insensitive Header Dictionaries!1896- Unicode URLs189718980.3.4 (2011-05-14)1899------------------19001901- Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)1902- Internal Refactor1903- Bytes data upload Bugfix190419050.3.3 (2011-05-12)1906------------------19071908- Request timeouts1909- Unicode url-encoded data1910- Settings context manager and module191119120.3.2 (2011-04-15)1913------------------19141915- Automatic Decompression of GZip Encoded Content1916- AutoAuth Support for Tupled HTTP Auth191719180.3.1 (2011-04-01)1919------------------19201921- Cookie Changes1922- Response.read()1923- Poster fix192419250.3.0 (2011-02-25)1926------------------19271928- Automatic Authentication API Change1929- Smarter Query URL Parameterization1930- Allow file uploads and POST data togetherCatch AttributeError in utils.super_len (#5239)David Hothambefore adoption2d2447e
line 1931why, one step back1931-updating usage informationNate Prewittbefore adoptiondaa2b29
lines 1932–1935why, one step back19321933 New Authentication Manager System19341935 : - Simpler Basic HTTP Systemfix minor typos (#5934)Kevin Kirschebefore adoptionfc106ab
line 1936why, one step back1936 - Supports all built-in urllib2 Authsupdating usage informationNate Prewittbefore adoptiondaa2b29
lines 1937–1949why, one step back1937 - Allows for custom Auth Handlers193819390.2.4 (2011-02-19)1940------------------19411942- Python 2.5 Support1943- PyPy-c v1.4 Support1944- Auto-Authentication tests1945- Improved Request object constructor194619470.2.3 (2011-02-15)1948------------------1949Catch AttributeError in utils.super_len (#5239)David Hothambefore adoption2d2447e
line 1950why, one step back1950-updating usage informationNate Prewittbefore adoptiondaa2b29
lines 1951–1982why, one step back19511952 New HTTPHandling Methods19531954 : - Response.\_\_nonzero\_\_ (false if bad HTTP Status)1955 - Response.ok (True if expected HTTP Status)1956 - Response.error (Logged HTTPError if bad HTTP Status)1957 - Response.raise\_for\_status() (Raises stored HTTPError)195819590.2.2 (2011-02-14)1960------------------19611962- Still handles request in the event of an HTTPError. (Issue \#2)1963- Eventlet and Gevent Monkeypatch support.1964- Cookie Support (Issue \#1)196519660.2.1 (2011-02-14)1967------------------19681969- Added file attribute to POST and PUT requests for multipart-encode1970 file uploads.1971- Added Request.url attribute for context and redirects197219730.2.0 (2011-02-14)1974------------------19751976- Birth!197719780.0.1 (2011-02-13)1979------------------19801981- Frustration1982- Conception