From bec0b33365c229887f8e555d791594807479c4bc Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Thu, 17 Sep 2015 21:35:29 +0200 Subject: [PATCH] fix problems detecting MIME Type from uppercase file extensions --- src/keepass2android/EntryActivity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keepass2android/EntryActivity.cs b/src/keepass2android/EntryActivity.cs index 5576a795..52c5441b 100644 --- a/src/keepass2android/EntryActivity.cs +++ b/src/keepass2android/EntryActivity.cs @@ -657,7 +657,7 @@ namespace keepass2android if (extension != null) { MimeTypeMap mime = MimeTypeMap.Singleton; - type = mime.GetMimeTypeFromExtension(extension); + type = mime.GetMimeTypeFromExtension(extension.ToLowerInvariant()); } return type; }