Adding openscad mimetype.

This commit is contained in:
Roland 2022-12-15 08:43:59 -07:00
parent 8dbdab6fd8
commit 574996c318
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('.scad'):
return 'application/x-openscad'
if suffix.endswith('.yaml') or suffix.endswith('.yml'):
return 'text/yaml'
return mimetype