Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/util/fileutil/fileutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func DetectMimeType(path string, fileInfo fs.FileInfo, extended bool) string {
if fileInfo.Mode()&os.ModeDevice == os.ModeDevice {
return "block-special"
}
ext := filepath.Ext(path)
ext := strings.ToLower(filepath.Ext(path))
if mimeType, ok := StaticMimeTypeMap[ext]; ok {
return mimeType
}
Expand Down Expand Up @@ -136,7 +136,7 @@ func DetectMimeTypeWithDirEnt(path string, dirEnt fs.DirEntry) string {
return "block-special"
}
}
ext := filepath.Ext(path)
ext := strings.ToLower(filepath.Ext(path))
if mimeType, ok := StaticMimeTypeMap[ext]; ok {
return mimeType
}
Expand Down
Loading