CERT-Polska / mwdblib

Client library for the mwdb service by CERT Polska.
https://mwdblib.readthedocs.io/en/latest/
MIT License
40 stars 13 forks source link

Fix upload_file content typing #61

Closed nazywam closed 2 years ago

nazywam commented 2 years ago

Requests allows a file-like object to be passed[1], which means we can accept both of those types.

[1] https://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file