From 7fd7797246dbbf5d4473dc57276409e1cc1b03f0 Mon Sep 17 00:00:00 2001 From: BCompertoreWAG <82907031+BCompertoreWAG@users.noreply.github.com> Date: Mon, 8 Dec 2025 09:26:57 -0500 Subject: [PATCH 1/2] urllib 2.6.0 Support --- docusign_esign/client/api_response.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusign_esign/client/api_response.py b/docusign_esign/client/api_response.py index a72da16e..f55137d4 100644 --- a/docusign_esign/client/api_response.py +++ b/docusign_esign/client/api_response.py @@ -46,11 +46,11 @@ def __init__(self, resp): def getheaders(self): """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() + return self.urllib3_response.headers def getheader(self, name, default=None): """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) + return self.urllib3_response.headers.get(name, default) class RESTClientObject(object): From 67134c506dcb6d6cecf43e921ce9f8c2b5c73c70 Mon Sep 17 00:00:00 2001 From: Vitalii Martyniak Date: Thu, 11 Dec 2025 15:40:17 +0100 Subject: [PATCH 2/2] chore: Update urllib3 version constraint to >= 2.0.0, < 3.0.0 - Constrain urllib3 dependency to versions between 2.0.0 and 3.0.0 - Ensures compatibility with urllib3 v2.x while preventing breaking changes from v3.x --- README.md | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 854087d1..9bafb765 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ This client has the following external dependencies: * six v1.8.0+ * python_dateutil v2.5.3+ * setuptools v21.0.0+ -* urllib3 v1.15.1+ +* urllib3 v2.0.0+ * PyJWT v2.0.0+ * cryptography v2.5+ diff --git a/setup.py b/setup.py index 854751d8..85edc1c3 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.8.0", "certifi >= 14.05.14", "python-dateutil >= 2.5.3", "setuptools >= 21.0.0", "PyJWT>=2.0.0", "cryptography>=2.5"] +REQUIRES = ["urllib3 >= 2.0.0, < 3.0.0", "six >= 1.8.0", "certifi >= 14.05.14", "python-dateutil >= 2.5.3", "setuptools >= 21.0.0", "PyJWT>=2.0.0", "cryptography>=2.5"] class CleanCommand(Command): """Custom clean command to tidy up the project root."""