forked from loafle/openapi-generator-original
Fix issue in python client.
If upload only file it will not send file content.
This commit is contained in:
@@ -126,7 +126,7 @@ class ApiClient(object):
|
||||
for k, v in iteritems(query_params)}
|
||||
|
||||
# post parameters
|
||||
if post_params:
|
||||
if post_params or files:
|
||||
post_params = self.prepare_post_parameters(post_params, files)
|
||||
post_params = self.sanitize_for_serialization(post_params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user