Fix issue in python client.

If upload only file it will not send file content.
This commit is contained in:
geekerzp
2015-09-25 15:10:32 +08:00
parent 5e805c2be6
commit 9b148be57e
3 changed files with 14 additions and 12 deletions

View File

@@ -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)