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.
2 parents 2a2b167 + d97b455 commit dc5f58bCopy full SHA for dc5f58b
modules/swagger-codegen/src/main/resources/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