From 1d9e573c922c2d3efc2ce2331541e10b6d4146c6 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 28 Dec 2022 18:30:46 -0700 Subject: [PATCH] Handling .hgt files mimetype specifically. --- wrolpi/files/lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrolpi/files/lib.py b/wrolpi/files/lib.py index 1bac6200..2e4dc69e 100644 --- a/wrolpi/files/lib.py +++ b/wrolpi/files/lib.py @@ -123,6 +123,8 @@ def _mimetype_suffix_map(path: Path, mimetype: str): return 'text/srt' if suffix.endswith('.yaml') or suffix.endswith('.yml'): return 'text/yaml' + if suffix.endswith('.hgt'): + return 'application/octet-stream' return mimetype