An octet-stream that ends with mp4 is a video.

This commit is contained in:
Roland 2023-06-09 16:10:21 -06:00
parent 8ddc4d5a7c
commit 6ace7cc098
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -153,6 +153,8 @@ def _mimetype_suffix_map(path: Path, mimetype: str):
return MOBI_MIMETYPE
if suffix.endswith('.stl'):
return 'model/stl'
if suffix.endswith('.mp4'):
return 'video/mp4'
if suffix.endswith('.hgt'):
return 'application/octet-stream'
if mimetype == 'text/plain':