Skip to content

Commit 858a515

Browse files
authored
Merge pull request #12913 from srishtih/upgrade-urllib3-1.26.19
Upgrade urllib3 to 1.26.19
2 parents e98cc5c + 126be63 commit 858a515

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

news/urllib3.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade urllib3 to 1.26.19

src/pip/_vendor/urllib3/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This file is protected via CODEOWNERS
2-
__version__ = "1.26.18"
2+
__version__ = "1.26.19"

src/pip/_vendor/urllib3/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class BrokenPipeError(Exception):
6868

6969
# When it comes time to update this value as a part of regular maintenance
7070
# (ie test_recent_date is failing) update it to ~6 months before the current date.
71-
RECENT_DATE = datetime.date(2022, 1, 1)
71+
RECENT_DATE = datetime.date(2024, 1, 1)
7272

7373
_CONTAINS_CONTROL_CHAR_RE = re.compile(r"[^-!#$%&'*+.^_`|~0-9a-zA-Z]")
7474

@@ -437,7 +437,7 @@ def connect(self):
437437
and self.ssl_version is None
438438
and hasattr(self.sock, "version")
439439
and self.sock.version() in {"TLSv1", "TLSv1.1"}
440-
):
440+
): # Defensive:
441441
warnings.warn(
442442
"Negotiating TLSv1/TLSv1.1 by default is deprecated "
443443
"and will be disabled in urllib3 v2.0.0. Connecting to "

src/pip/_vendor/urllib3/connectionpool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,9 @@ def _is_ssl_error_message_from_http_proxy(ssl_error):
768768
# so we try to cover our bases here!
769769
message = " ".join(re.split("[^a-z]", str(ssl_error).lower()))
770770
return (
771-
"wrong version number" in message or "unknown protocol" in message
771+
"wrong version number" in message
772+
or "unknown protocol" in message
773+
or "record layer failure" in message
772774
)
773775

774776
# Try to detect a common user error with proxies which is to

src/pip/_vendor/urllib3/util/retry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ class Retry(object):
235235
RETRY_AFTER_STATUS_CODES = frozenset([413, 429, 503])
236236

237237
#: Default headers to be used for ``remove_headers_on_redirect``
238-
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(["Cookie", "Authorization"])
238+
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(
239+
["Cookie", "Authorization", "Proxy-Authorization"]
240+
)
239241

240242
#: Maximum backoff time.
241243
DEFAULT_BACKOFF_MAX = 120

src/pip/_vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pyproject-hooks==1.0.0
88
requests==2.32.3
99
certifi==2024.7.4
1010
idna==3.7
11-
urllib3==1.26.18
11+
urllib3==1.26.19
1212
rich==13.7.1
1313
pygments==2.18.0
1414
typing_extensions==4.12.2

0 commit comments

Comments
 (0)