Skip to content

Commit 52d4f9f

Browse files
committed
str response type cannot be decoded
1 parent 1971b2f commit 52d4f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __call_api(
199199

200200
response_type = response_types_map.get(response_data.status, None)
201201

202-
if six.PY3 and response_type not in ["file", "bytes"]:
202+
if six.PY3 and response_type not in ["file", "bytes", "str"]:
203203
match = None
204204
content_type = response_data.getheader('content-type')
205205
if content_type is not None:

0 commit comments

Comments
 (0)