Handling .hgt files mimetype specifically.

This commit is contained in:
Roland 2022-12-28 18:30:46 -07:00
parent 95c8610df2
commit 1d9e573c92
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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