From 574996c3187e7538b453fe2ef1acd0b6cadccf07 Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 15 Dec 2022 08:43:59 -0700 Subject: [PATCH] Adding openscad mimetype. --- wrolpi/files/lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrolpi/files/lib.py b/wrolpi/files/lib.py index be4910c5..5e0da11d 100644 --- a/wrolpi/files/lib.py +++ b/wrolpi/files/lib.py @@ -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