File tree 6 files changed +11
-6
lines changed
6 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ Upgrade urllib3 to 1.26.19
Original file line number Diff line number Diff line change 1
1
# This file is protected via CODEOWNERS
2
- __version__ = "1.26.18 "
2
+ __version__ = "1.26.19 "
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class BrokenPipeError(Exception):
68
68
69
69
# When it comes time to update this value as a part of regular maintenance
70
70
# (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 )
72
72
73
73
_CONTAINS_CONTROL_CHAR_RE = re .compile (r"[^-!#$%&'*+.^_`|~0-9a-zA-Z]" )
74
74
@@ -437,7 +437,7 @@ def connect(self):
437
437
and self .ssl_version is None
438
438
and hasattr (self .sock , "version" )
439
439
and self .sock .version () in {"TLSv1" , "TLSv1.1" }
440
- ):
440
+ ): # Defensive:
441
441
warnings .warn (
442
442
"Negotiating TLSv1/TLSv1.1 by default is deprecated "
443
443
"and will be disabled in urllib3 v2.0.0. Connecting to "
Original file line number Diff line number Diff line change @@ -768,7 +768,9 @@ def _is_ssl_error_message_from_http_proxy(ssl_error):
768
768
# so we try to cover our bases here!
769
769
message = " " .join (re .split ("[^a-z]" , str (ssl_error ).lower ()))
770
770
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
772
774
)
773
775
774
776
# Try to detect a common user error with proxies which is to
Original file line number Diff line number Diff line change @@ -235,7 +235,9 @@ class Retry(object):
235
235
RETRY_AFTER_STATUS_CODES = frozenset ([413 , 429 , 503 ])
236
236
237
237
#: 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
+ )
239
241
240
242
#: Maximum backoff time.
241
243
DEFAULT_BACKOFF_MAX = 120
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pyproject-hooks==1.0.0
8
8
requests==2.32.3
9
9
certifi==2024.7.4
10
10
idna==3.7
11
- urllib3==1.26.18
11
+ urllib3==1.26.19
12
12
rich==13.7.1
13
13
pygments==2.18.0
14
14
typing_extensions==4.12.2
You can’t perform that action at this time.
0 commit comments