Select application/json content-type in python generated client, if */* is in the list of content-types

This commit is contained in:
mbohlool
2016-11-07 11:48:30 -08:00
parent 7f31763273
commit 37460ee833
2 changed files with 2 additions and 2 deletions

View File

@@ -462,7 +462,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]