Skip to content

Commit 0192aac

Browse files
committed
v2.27.0
1 parent e50dc12 commit 0192aac

2 files changed

Lines changed: 48 additions & 8 deletions

File tree

HISTORY.md

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,53 @@ dev
66

77
- \[Short description of non-trivial change.\]
88

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
1118
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**
1352

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.
1656

1757
2.26.0 (2021-07-13)
1858
-------------------

requests/__version__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
__title__ = 'requests'
66
__description__ = 'Python HTTP for Humans.'
77
__url__ = 'https://requests.readthedocs.io'
8-
__version__ = '2.26.0'
9-
__build__ = 0x022600
8+
__version__ = '2.27.0'
9+
__build__ = 0x022700
1010
__author__ = 'Kenneth Reitz'
1111
__author_email__ = 'me@kennethreitz.org'
1212
__license__ = 'Apache 2.0'
13-
__copyright__ = 'Copyright 2020 Kenneth Reitz'
13+
__copyright__ = 'Copyright 2022 Kenneth Reitz'
1414
__cake__ = u'\u2728 \U0001f370 \u2728'

0 commit comments

Comments
 (0)