From 4d3aef98d19316801e371ed0f8e24de66c5b3226 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 14 Dec 2022 19:34:13 -0700 Subject: [PATCH] Special handling for YAML files. --- wrolpi/files/lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrolpi/files/lib.py b/wrolpi/files/lib.py index ed0d0e92..be4910c5 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('.yaml') or suffix.endswith('.yml'): + return 'text/yaml' return mimetype