Skip to content

Commit 53e68c7

Browse files
committed
updated headers call in urllib3
1 parent abedf25 commit 53e68c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/handlebars/python/rest.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ class RESTResponse(io.IOBase):
3434

3535
def getheaders(self):
3636
"""Returns a dictionary of the response headers."""
37-
return self.urllib3_response.getheaders()
37+
return self.urllib3_response.headers
3838

3939
def getheader(self, name, default=None):
4040
"""Returns a given response header."""
41-
return self.urllib3_response.getheader(name, default)
41+
return self.urllib3_response.headers.get(name, default)
4242

4343

4444
class RESTClientObject(object):

0 commit comments

Comments
 (0)