We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49295d0 commit 970c082Copy full SHA for 970c082
1 file changed
src/Essentials/src/FileSystem/FileSystem.windows.cs
@@ -2,6 +2,7 @@
2
using System.Collections.Frozen;
3
using System.Collections.Generic;
4
using System.IO;
5
+using System.Linq;
6
using System.Net.Mime;
7
using System.Threading.Tasks;
8
using Microsoft.Maui.ApplicationModel;
@@ -196,8 +197,6 @@ string PlatformGetContentType(string extension)
196
197
if (ExtensionToMimeTypeMap.TryGetValue(extension, out var mimeType))
198
return mimeType;
199
- // For compound extensions like .tar.gz, try to match longer extensions first
200
- // This handles cases where we have both .gz and .tar.gz in our mapping
201
var fileName = Path.GetFileNameWithoutExtension(extension);
202
if (!string.IsNullOrEmpty(fileName) && fileName.Contains('.', StringComparison.Ordinal))
203
{
0 commit comments