|
6 | 6 |
|
7 | 7 | - \[Short description of non-trivial change.\] |
8 | 8 |
|
9 | | -- Added a `requests.exceptions.JSONDecodeError` to decrease inconsistencies |
10 | | - in the library. This gets raised in the `response.json()` method, and is |
| 9 | +2.27.0 (2022-01-03) |
| 10 | +------------------- |
| 11 | + |
| 12 | +**Improvements** |
| 13 | + |
| 14 | +- Officially added support for Python 3.10. (#5928) |
| 15 | + |
| 16 | +- Added a `requests.exceptions.JSONDecodeError` to unify JSON exceptions between |
| 17 | + Python 2 and 3. This gets raised in the `response.json()` method, and is |
11 | 18 | backwards compatible as it inherits from previously thrown exceptions. |
12 | | - Can be caught from `requests.exceptions.RequestException` as well. |
| 19 | + Can be caught from `requests.exceptions.RequestException` as well. (#5856) |
| 20 | + |
| 21 | +- Improved error text for misnamed `InvalidSchema` and `MissingSchema` |
| 22 | + exceptions. This is a temporary fix until exceptions can be renamed |
| 23 | + (Schema->Scheme). (#6017) |
| 24 | + |
| 25 | +- Improved proxy parsing for proxy URLs missing a scheme. This will address |
| 26 | + recent changes to `urlparse` in Python 3.9+. (#5917) |
| 27 | + |
| 28 | +**Bugfixes** |
| 29 | + |
| 30 | +- Fixed defect in `extract_zipped_paths` which could result in an infinite loop |
| 31 | + for some paths. (#5851) |
| 32 | + |
| 33 | +- Fixed handling for `AttributeError` when calculating length of files obtained |
| 34 | + by `Tarfile.extractfile()`. (#5239) |
| 35 | + |
| 36 | +- Fixed urllib3 exception leak, wrapping `urllib3.exceptions.InvalidHeader` with |
| 37 | + `requests.exceptions.InvalidHeader`. (#5914) |
| 38 | + |
| 39 | +- Fixed bug where two Host headers were sent for chunked requests. (#5391) |
| 40 | + |
| 41 | +- Fixed regression in Requests 2.26.0 where `Proxy-Authorization` was |
| 42 | + incorrectly stripped from all requests sent with `Session.send`. (#5924) |
| 43 | + |
| 44 | +- Fixed performance regression in 2.26.0 for hosts with a large number of |
| 45 | + proxies available in the environment. (#5924) |
| 46 | + |
| 47 | +- Fixed idna exception leak, wrapping `UnicodeError` with |
| 48 | + `requests.exceptions.InvalidURL` for URLs with a leading dot (.) in the |
| 49 | + domain. (#5414) |
| 50 | + |
| 51 | +**Deprecations** |
13 | 52 |
|
14 | | -- Catch `AttributeError` when calculating length of files obtained by |
15 | | - `Tarfile.extractfile()` |
| 53 | +- Requests support for Python 2.7 and 3.6 will be ending in 2022. While we |
| 54 | + don't have exact dates, Requests 2.27.x is likely to be the last release |
| 55 | + series providing support. |
16 | 56 |
|
17 | 57 | 2.26.0 (2021-07-13) |
18 | 58 | ------------------- |
|
0 commit comments