From 54d6edf2a671510a5c029d3b76ffe71a5b07147a Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Sun, 18 Feb 2024 07:44:08 +0400 Subject: [PATCH] Release 2.2.1 --- CHANGES.rst | 9 +++++++++ changelog/2860.bugfix.rst | 1 - changelog/3261.misc.rst | 1 - changelog/3331.bugfix.rst | 1 - changelog/3343.bugfix.rst | 1 - src/urllib3/_version.py | 2 +- 6 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 changelog/2860.bugfix.rst delete mode 100644 changelog/3261.misc.rst delete mode 100644 changelog/3331.bugfix.rst delete mode 100644 changelog/3343.bugfix.rst diff --git a/CHANGES.rst b/CHANGES.rst index 80f439f521..319accb223 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,12 @@ +2.2.1 (2024-02-16) +================== + +- Fixed issue where ``InsecureRequestWarning`` was emitted for HTTPS connections when using Emscripten. (`#3331 `__) +- Fixed ``HTTPConnectionPool.urlopen`` to stop automatically casting non-proxy headers to ``HTTPHeaderDict``. This change was premature as it did not apply to proxy headers and ``HTTPHeaderDict`` does not handle byte header values correctly yet. (`#3343 `__) +- Changed ``ProtocolError`` to ``InvalidChunkLength`` when response terminates before the chunk length is sent. (`#2860 `__) +- Changed ``ProtocolError`` to be more verbose on incomplete reads with excess content. (`#3261 `__) + + 2.2.0 (2024-01-30) ================== diff --git a/changelog/2860.bugfix.rst b/changelog/2860.bugfix.rst deleted file mode 100644 index 3fc6ef7069..0000000000 --- a/changelog/2860.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Use ProtocolError instead of InvalidChunkLength if response terminates before the chunk length is sent. diff --git a/changelog/3261.misc.rst b/changelog/3261.misc.rst deleted file mode 100644 index 5e44888bc9..0000000000 --- a/changelog/3261.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Made raised ``urllib3.exceptions.ProtocolError`` more verbose when a response contains content unexpectedly. diff --git a/changelog/3331.bugfix.rst b/changelog/3331.bugfix.rst deleted file mode 100644 index d309ee7b48..0000000000 --- a/changelog/3331.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed issue where ``InsecureRequestWarning`` was emitted for HTTPS connections when using Emscripten. diff --git a/changelog/3343.bugfix.rst b/changelog/3343.bugfix.rst deleted file mode 100644 index 4f2df9e7a4..0000000000 --- a/changelog/3343.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed ``HTTPConnectionPool.urlopen`` to stop automatically casting non-proxy headers to ``HTTPHeaderDict``. This change was premature as it did not apply to proxy headers and ``HTTPHeaderDict`` does not handle byte header values correctly yet. diff --git a/src/urllib3/_version.py b/src/urllib3/_version.py index f697e3e7ea..095cf3c16b 100644 --- a/src/urllib3/_version.py +++ b/src/urllib3/_version.py @@ -1,4 +1,4 @@ # This file is protected via CODEOWNERS from __future__ import annotations -__version__ = "2.2.0" +__version__ = "2.2.1"