smartfile / client-python

SmartFile API Client (Python).
http://app.smartfile.com/api/
MIT License
20 stars 7 forks source link

Attempting to download .json file parses file as JSON. #25

Open btimby opened 4 years ago

btimby commented 4 years ago

If you attempt to download a .json file, the library instead parses the JSON content of the file. This is because parsing is triggered by the Content-Type header, which is set to application/json according to the file type being downloaded.

Downloading should disable the automatic parsing of JSON, or the library should return a response and allow the caller to parse JSON if that is desired.