From 6d1d7ea3d99a529fbf9b114bb4a756a4cdde5db6 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 22 Apr 2016 22:37:29 -0400 Subject: [PATCH] Default to application/json We should end up with a specific type as the default if '*/*' is specified. Note that the default is 'application/json' Change-Id: I2107da25de8abd19c0d5a87d756e14916aa7fada --- k8sclient/client/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8sclient/client/api_client.py b/k8sclient/client/api_client.py index c91c52f..158ea66 100644 --- a/k8sclient/client/api_client.py +++ b/k8sclient/client/api_client.py @@ -424,7 +424,7 @@ class ApiClient(object): content_types = list(map(lambda x: x.lower(), content_types)) - if 'application/json' in content_types: + if 'application/json' in content_types or '*/*' in content_types: return 'application/json' else: return content_types[0]