Special handling for YAML files.

This commit is contained in:
Roland 2022-12-14 19:34:13 -07:00
parent f7aaa1363c
commit 4d3aef98d1
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

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