forked from loafle/openapi-generator-original
Change post_param from dict to list of tuples to allow list of files
This commit is contained in:
parent
833ce25cab
commit
2407c494e7
@ -402,7 +402,7 @@ class ApiClient(object):
|
||||
filedata = f.read()
|
||||
mimetype = mimetypes.\
|
||||
guess_type(filename)[0] or 'application/octet-stream'
|
||||
params.append(tuple[k, tuple([filename, filedata, mimetype])])
|
||||
params.append(tuple([k, tuple([filename, filedata, mimetype])]))
|
||||
|
||||
return params
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user