We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abedf25 commit 53e68c7Copy full SHA for 53e68c7
src/main/resources/handlebars/python/rest.mustache
@@ -34,11 +34,11 @@ class RESTResponse(io.IOBase):
34
35
def getheaders(self):
36
"""Returns a dictionary of the response headers."""
37
- return self.urllib3_response.getheaders()
+ return self.urllib3_response.headers
38
39
def getheader(self, name, default=None):
40
"""Returns a given response header."""
41
- return self.urllib3_response.getheader(name, default)
+ return self.urllib3_response.headers.get(name, default)
42
43
44
class RESTClientObject(object):
0 commit comments