aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-08-23 21:00:51 +0200
committerDaniel Gultsch <daniel@gultsch.de>2015-08-23 21:00:51 +0200
commitc19adebaf05e732179e0267427292c408ec7d560 (patch)
treed9db7209eb503be6179fd1e7d802773b56312893
parent8043833156119eef4662c50f30ca647bfc6d4438 (diff)
open files with capital extensions as well. fixes #1354
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/MimeUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/MimeUtils.java b/src/main/java/eu/siacs/conversations/utils/MimeUtils.java
index a9e89d1b..d4544424 100644
--- a/src/main/java/eu/siacs/conversations/utils/MimeUtils.java
+++ b/src/main/java/eu/siacs/conversations/utils/MimeUtils.java
@@ -458,7 +458,7 @@ public final class MimeUtils {
if (extension == null || extension.isEmpty()) {
return null;
}
- return extensionToMimeTypeMap.get(extension);
+ return extensionToMimeTypeMap.get(extension.toLowerCase());
}
/**
* Returns true if the given extension has a registered MIME type.