mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 23:16:17 -05:00
An octet-stream that ends with mp4 is a video.
This commit is contained in:
parent
8ddc4d5a7c
commit
6ace7cc098
1 changed files with 2 additions and 0 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue