Skip to content

Commit

Permalink
fix: add application/x-wine-extension-ini to text mime (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndtoan96 authored Oct 12, 2023
1 parent ec29ee5 commit 774f8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/mime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 774f8bc

Please sign in to comment.