Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gooddata-api-client/gooddata_api_client/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,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):
Expand Down
2 changes: 1 addition & 1 deletion gooddata-api-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.25.3
urllib3 >= 2.6.1
2 changes: 1 addition & 1 deletion gooddata-api-client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# http://pypi.python.org/pypi/setuptools

REQUIRES = [
"urllib3 >= 1.25.3",
"urllib3 >= 2.6.1",
"python-dateutil",
]

Expand Down
Loading