diff --git a/README.md b/README.md index 854087d..9bafb76 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/docusign_esign/client/api_response.py b/docusign_esign/client/api_response.py index a72da16..f55137d 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): diff --git a/setup.py b/setup.py index 854751d..85edc1c 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."""