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
This commit is contained in:
parent
1f3d16883e
commit
6d1d7ea3d9
@ -424,7 +424,7 @@ class ApiClient(object):
|
|||||||
|
|
||||||
content_types = list(map(lambda x: x.lower(), content_types))
|
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'
|
return 'application/json'
|
||||||
else:
|
else:
|
||||||
return content_types[0]
|
return content_types[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user