~xdavidwu/saf-cephfs

6d5d42815c91f9fe6b50d56d01d005118c0564ed — Pinghao Wu a month ago f8764e4
CephFSDocumentsProvider: mime-from-ext: remove lowercasing

libcore does this
1 files changed, 1 insertions(+), 2 deletions(-)

M src/main/java/org/safcephfs/CephFSDocumentsProvider.java
M src/main/java/org/safcephfs/CephFSDocumentsProvider.java => src/main/java/org/safcephfs/CephFSDocumentsProvider.java +1 -2
@@ 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;
			}