From 6d5d42815c91f9fe6b50d56d01d005118c0564ed Mon Sep 17 00:00:00 2001 From: Pinghao Wu Date: Sun, 27 Oct 2024 11:18:38 +0800 Subject: [PATCH] CephFSDocumentsProvider: mime-from-ext: remove lowercasing libcore does this --- src/main/java/org/safcephfs/CephFSDocumentsProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/safcephfs/CephFSDocumentsProvider.java b/src/main/java/org/safcephfs/CephFSDocumentsProvider.java index 8d3c3ed..5f6d382 100644 --- a/src/main/java/org/safcephfs/CephFSDocumentsProvider.java +++ b/src/main/java/org/safcephfs/CephFSDocumentsProvider.java @@ -33,7 +33,6 @@ import java.io.UncheckedIOException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.HashMap; -import java.util.Locale; import com.ceph.fs.CephMount; import com.ceph.fs.CephStat; @@ -77,7 +76,7 @@ public class CephFSDocumentsProvider extends DocumentsProvider { int idx = filename.lastIndexOf("."); if (idx > 0) { String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension( - filename.substring(idx + 1).toLowerCase(Locale.ROOT)); + filename.substring(idx + 1)); if (mime != null) { return mime; } -- 2.45.2