Skip to content

Commit c3fec53

Browse files
committed
fix
1 parent 68afa19 commit c3fec53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi-generator/templates/python/rest.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class RESTResponse(io.IOBase):
4141
def getencoding(self):
4242
"""Returns charset encoding returned by the server."""
4343
encoding = 'utf-8'
44-
content_type = self.headers.get('Content-Type')
44+
content_type = self.getheader('Content-Type')
4545
if content_type:
4646
m = re.search(r'charset=(\S+)', content_type)
4747
if m: encoding = m.group(1)

0 commit comments

Comments
 (0)