From 686ab7d843e7ad9d9782fb63f600a4942b896c2d Mon Sep 17 00:00:00 2001 From: si-gui Date: Mon, 24 May 2021 20:04:00 +0800 Subject: [PATCH] set RECENT_DATE not be older than 2 years --- src/urllib3/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/urllib3/connection.py b/src/urllib3/connection.py index 6da1cf4..29dc4d8 100644 --- a/src/urllib3/connection.py +++ b/src/urllib3/connection.py @@ -57,7 +57,7 @@ port_by_scheme = {"http": 80, "https": 443} # 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(2019, 1, 1) +RECENT_DATE = datetime.date(2021, 1, 1) _CONTAINS_CONTROL_CHAR_RE = re.compile(r"[^-!#$%&'*+.^_`|~0-9a-zA-Z]") -- 2.30.0