From 774f8bc90195eb31ca23c41d44a7d7a9253813d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BB=A9c=20To=C3=A0n?= <33489972+ndtoan96@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:50:38 +0700 Subject: [PATCH] fix: add `application/x-wine-extension-ini` to text mime (#259) --- shared/src/mime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/mime.rs b/shared/src/mime.rs index a3e5d184..9da7d107 100644 --- a/shared/src/mime.rs +++ b/shared/src/mime.rs @@ -18,7 +18,7 @@ pub enum MimeKind { impl MimeKind { pub fn new(s: &str) -> Self { - if s.starts_with("text/") || s.ends_with("/xml") || s.ends_with("/javascript") { + if s.starts_with("text/") || s.ends_with("/xml") || s.ends_with("/javascript") || s.ends_with("/x-wine-extension-ini") { Self::Text } else if s.starts_with("image/") { Self::Image