Skip to content

Commit

Permalink
Upgrade urllib3 to 1.26.19
Browse files Browse the repository at this point in the history
  • Loading branch information
srishtih committed Aug 14, 2024
1 parent e98cc5c commit 126be63
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions news/urllib3.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade urllib3 to 1.26.19
2 changes: 1 addition & 1 deletion src/pip/_vendor/urllib3/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is protected via CODEOWNERS
__version__ = "1.26.18"
__version__ = "1.26.19"
4 changes: 2 additions & 2 deletions src/pip/_vendor/urllib3/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class BrokenPipeError(Exception):

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

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

Expand Down Expand Up @@ -437,7 +437,7 @@ def connect(self):
and self.ssl_version is None
and hasattr(self.sock, "version")
and self.sock.version() in {"TLSv1", "TLSv1.1"}
):
): # Defensive:
warnings.warn(
"Negotiating TLSv1/TLSv1.1 by default is deprecated "
"and will be disabled in urllib3 v2.0.0. Connecting to "
Expand Down
4 changes: 3 additions & 1 deletion src/pip/_vendor/urllib3/connectionpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ def _is_ssl_error_message_from_http_proxy(ssl_error):
# so we try to cover our bases here!
message = " ".join(re.split("[^a-z]", str(ssl_error).lower()))
return (
"wrong version number" in message or "unknown protocol" in message
"wrong version number" in message
or "unknown protocol" in message
or "record layer failure" in message
)

# Try to detect a common user error with proxies which is to
Expand Down
4 changes: 3 additions & 1 deletion src/pip/_vendor/urllib3/util/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ class Retry(object):
RETRY_AFTER_STATUS_CODES = frozenset([413, 429, 503])

#: Default headers to be used for ``remove_headers_on_redirect``
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(["Cookie", "Authorization"])
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(
["Cookie", "Authorization", "Proxy-Authorization"]
)

#: Maximum backoff time.
DEFAULT_BACKOFF_MAX = 120
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_vendor/vendor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pyproject-hooks==1.0.0
requests==2.32.3
certifi==2024.7.4
idna==3.7
urllib3==1.26.18
urllib3==1.26.19
rich==13.7.1
pygments==2.18.0
typing_extensions==4.12.2
Expand Down

0 comments on commit 126be63

Please sign in to comment.