Commit dc136314 authored by Nam T. Nguyen's avatar Nam T. Nguyen
Browse files

Default to octet-stream if mimetype detection fails.

The function mimetypes.guess_type returns (None, None) if it fails to
find a matching extension. In that case, we should just treat the media
as application/octet-stream.
parent dbabf825
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment