add x-wine-extension-ini to text mime

This commit is contained in:
Nguyen Duc Toan 2023-10-12 15:28:24 +07:00
parent df5fd4c964
commit 2576d0181a

View file

@ -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