open files with capital extensions as well. fixes #1354
This commit is contained in:
parent
8043833156
commit
c19adebaf0
|
@ -458,7 +458,7 @@ public final class MimeUtils {
|
||||||
if (extension == null || extension.isEmpty()) {
|
if (extension == null || extension.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return extensionToMimeTypeMap.get(extension);
|
return extensionToMimeTypeMap.get(extension.toLowerCase());
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Returns true if the given extension has a registered MIME type.
|
* Returns true if the given extension has a registered MIME type.
|
||||||
|
|
Loading…
Reference in a new issue