Fix file files_upload parameters.

"File" parameter is a result of "open(file_path, 'rb')".
This commit is contained in:
Pluser761 2021-07-05 23:59:24 +03:00 committed by GitHub
parent 27ff0849ec
commit f4c0677b9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,7 +742,7 @@ class Client(Base):
:return: Response
"""
self.parameters['file'] = json.dumps(file)
self.parameters['file'] = file
if site is not None:
self.parameters['site'] = site