- update to 1.23 - add 1414.patch - fix tests with new tornado - refresh python-urllib3-recent-date.patch - drop urllib3-test-no-coverage.patch * Allow providing a list of headers to strip from requests when redirecting to a different host. Defaults to the Authorization header. Different headers can be set via Retry.remove_headers_on_redirect. * Fix util.selectors._fileobj_to_fd to accept long * Dropped Python 3.3 support. * Put the connection back in the pool when calling stream() or read_chunked() on a chunked HEAD response. * Fixed pyOpenSSL-specific ssl client authentication issue when clients attempted to auth via certificate + chain * Add the port to the connectionpool connect print * Don't use the uuid module to create multipart data boundaries. * read_chunked() on a closed response returns no chunks. * Add Python 2.6 support to contrib.securetransport * Added support for auth info in url for SOCKS proxy OBS-URL: https://build.opensuse.org/request/show/622951 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=40
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
|
|
---
|
|
urllib3/connection.py | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
Index: urllib3-1.23/urllib3/connection.py
|
|
===================================================================
|
|
--- urllib3-1.23.orig/urllib3/connection.py
|
|
+++ urllib3-1.23/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):
|