* Allow key_server_hostname to be specified when initializing a PoolManager to allow custom SNI to be overridden. (Pull #1449) * Test against Python 3.7 on AppVeyor. (Pull #1453) * Early-out ipv6 checks when running on App Engine. (Pull #1450) * Change ambiguous description of backoff_factor (Pull #1436) * Add ability to handle multiple Content-Encodings (Issue #1441 and Pull #1442) * Skip DNS names that can't be idna-decoded when using pyOpenSSL (Issue #1405). * Add a server_hostname parameter to HTTPSConnection which allows for overriding the SNI hostname sent in the handshake. (Pull #1397) * Drop support for EOL Python 2.6 (Pull #1429 and Pull #1430) * Fixed bug where responses with header Content-Type: message/* erroneously raised HeaderParsingError, resulting in a warning being logged. (Pull #1439) * Move urllib3 to src/urllib3 (Pull #1409) - Drop patch 1414.patch merged upstream - Refresh patches: * python-urllib3-recent-date.patch * urllib3-ssl-default-context.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=53
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From fc27a8ed4203084c97fd1260d2566255c35ca945 Mon Sep 17 00:00:00 2001
|
|
From: Dominique Leuenberger <dimstar@opensuse.org>
|
|
Date: Sun, 31 Dec 2017 15:11:16 +0100
|
|
Subject: [PATCH] Move RECENT_DATE to 2017-06-30
|
|
|
|
The test suite expects the current date to be no more than two years in the future
|
|
of RECENT_DATE, which just serves as a reference point.
|
|
|
|
Also clarify the comment about how to update RECENT_DATE
|
|
|
|
Fixes #1303
|
|
---
|
|
src/urllib3/connection.py | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
Index: urllib3-1.23/urllib3/connection.py
|
|
===================================================================
|
|
--- urllib3-1.23.orig/src/urllib3/connection.py
|
|
+++ urllib3-1.23/src/urllib3/connection.py
|
|
@@ -60,7 +60,7 @@ port_by_scheme = {
|
|
# and not less than 6 months ago.
|
|
# Example: if Today is 2018-01-01, then RECENT_DATE should be any date on or
|
|
# after 2016-01-01 (today - 2 years) AND before 2017-07-01 (today - 6 months)
|
|
-RECENT_DATE = datetime.date(2017, 6, 30)
|
|
+RECENT_DATE = datetime.date(2018, 1, 30)
|
|
|
|
|
|
class DummyConnection(object):
|