fix: add application/x-wine-extension-ini to text mime (#259)

This commit is contained in:
Nguyễn Đức Toàn 2023-10-12 16:50:38 +07:00 committed by GitHub
parent ec29ee5d92
commit 774f8bc901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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