diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-08-23 21:00:51 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-08-23 21:00:51 +0200 |
commit | c19adebaf05e732179e0267427292c408ec7d560 (patch) | |
tree | d9db7209eb503be6179fd1e7d802773b56312893 /src/main/java/eu/siacs | |
parent | 8043833156119eef4662c50f30ca647bfc6d4438 (diff) |
open files with capital extensions as well. fixes #1354
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/MimeUtils.java | 2 |
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. |