mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 03:16:22 -05:00
Special handling for YAML files.
This commit is contained in:
parent
f7aaa1363c
commit
4d3aef98d1
1 changed files with 2 additions and 0 deletions
|
|
@ -112,6 +112,8 @@ def _mimetype_suffix_map(path: Path, mimetype: str):
|
|||
return 'text/html'
|
||||
if suffix.endswith('.stl'):
|
||||
return 'application/sta'
|
||||
if suffix.endswith('.yaml') or suffix.endswith('.yml'):
|
||||
return 'text/yaml'
|
||||
return mimetype
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue