Skip to content

Commit

Permalink
[fix] add missing change in latest regnerated lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tomplus committed Mar 10, 2022
1 parent da1e317 commit 270f009
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kubernetes_asyncio/client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ async def __call_api(
e.body = e.body.decode('utf-8') if six.PY3 else e.body
raise e

content_type = response_data.getheader('content-type')

self.last_response = response_data

return_data = response_data
Expand All @@ -199,6 +197,7 @@ async def __call_api(

if six.PY3 and response_type not in ["file", "bytes"]:
match = None
content_type = response_data.getheader('content-type')
if content_type is not None:
match = re.search(r"charset=([a-zA-Z\-\d]+)[\s\;]?", content_type)
encoding = match.group(1) if match else "utf-8"
Expand Down

0 comments on commit 270f009

Please sign in to comment.