From bd840450c0d1e9db3bf62382c15d96378cc3a056 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Tue, 16 Oct 2018 13:06:29 -0700 Subject: [PATCH] v2.20.0 --- HISTORY.md | 19 ++++++++++++++++++- requests/__init__.py | 4 ++-- requests/__version__.py | 4 ++-- setup.py | 2 +- 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 116a6399a5..09a09eee07 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,12 +6,29 @@ dev **Bugfixes** +- \[Short description of non-trivial change.\] + +2.20.0 (2018-10-18) +------------------- + +**Bugfixes** + - Content-Type header parsing is now case-insensitive (e.g. charset=utf8 v Charset=utf8). - Fixed exception leak where certain redirect urls would raise uncaught urllib3 exceptions. +- Requests removes Authorization header from requests redirected + from https to http on the same hostname. (CVE-2018-18074) +- `should_bypass_proxies` now handles URIs without hostnames (e.g. + files). -- \[Short description of non-trivial change.\] +**Dependencies** + +- Requests now supports urllib3 v1.24. + +**Deprecations** + +- Requests has officially stopped support for Python 2.6. 2.19.1 (2018-06-14) ------------------- diff --git a/requests/__init__.py b/requests/__init__.py index 18da1f2618..bc168ee533 100644 --- a/requests/__init__.py +++ b/requests/__init__.py @@ -57,10 +57,10 @@ def check_compatibility(urllib3_version, chardet_version): # Check urllib3 for compatibility. major, minor, patch = urllib3_version # noqa: F811 major, minor, patch = int(major), int(minor), int(patch) - # urllib3 >= 1.21.1, <= 1.23 + # urllib3 >= 1.21.1, <= 1.24 assert major == 1 assert minor >= 21 - assert minor <= 23 + assert minor <= 24 # Check chardet for compatibility. major, minor, patch = chardet_version.split('.')[:3] diff --git a/requests/__version__.py b/requests/__version__.py index ef61ec0f55..be8a45fe0e 100644 --- a/requests/__version__.py +++ b/requests/__version__.py @@ -5,8 +5,8 @@ __title__ = 'requests' __description__ = 'Python HTTP for Humans.' __url__ = 'http://python-requests.org' -__version__ = '2.19.1' -__build__ = 0x021901 +__version__ = '2.20.0' +__build__ = 0x022000 __author__ = 'Kenneth Reitz' __author_email__ = 'me@kennethreitz.org' __license__ = 'Apache 2.0' diff --git a/setup.py b/setup.py index ec5542a274..4e2ad936eb 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def run_tests(self): requires = [ 'chardet>=3.0.2,<3.1.0', 'idna>=2.5,<2.8', - 'urllib3>=1.21.1,<1.24', + 'urllib3>=1.21.1,<1.25', 'certifi>=2017.4.17' ]