mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
Handling .hgt files mimetype specifically.
This commit is contained in:
parent
95c8610df2
commit
1d9e573c92
1 changed files with 2 additions and 0 deletions
|
|
@ -123,6 +123,8 @@ def _mimetype_suffix_map(path: Path, mimetype: str):
|
|||
return 'text/srt'
|
||||
if suffix.endswith('.yaml') or suffix.endswith('.yml'):
|
||||
return 'text/yaml'
|
||||
if suffix.endswith('.hgt'):
|
||||
return 'application/octet-stream'
|
||||
return mimetype
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue