forked from loafle/openapi-generator-original
add test cases for ApiClient.select_header_accept and
ApiClient.select_header_content_type of python client.
This commit is contained in:
@@ -259,7 +259,7 @@ class ApiClient(object):
|
||||
Return `Accept` based on an array of accepts provided
|
||||
"""
|
||||
if not accepts:
|
||||
return 'application/json'
|
||||
return
|
||||
if 'application/json'.lower() in accepts:
|
||||
return 'application/json'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user