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 68afa19 commit c3fec53Copy full SHA for c3fec53
openapi-generator/templates/python/rest.mustache
@@ -41,7 +41,7 @@ class RESTResponse(io.IOBase):
41
def getencoding(self):
42
"""Returns charset encoding returned by the server."""
43
encoding = 'utf-8'
44
- content_type = self.headers.get('Content-Type')
+ content_type = self.getheader('Content-Type')
45
if content_type:
46
m = re.search(r'charset=(\S+)', content_type)
47
if m: encoding = m.group(1)
0 commit comments