Skip to content

Commit 970c082

Browse files
fixed the errors
1 parent 49295d0 commit 970c082

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Essentials/src/FileSystem/FileSystem.windows.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Frozen;
33
using System.Collections.Generic;
44
using System.IO;
5+
using System.Linq;
56
using System.Net.Mime;
67
using System.Threading.Tasks;
78
using Microsoft.Maui.ApplicationModel;
@@ -196,8 +197,6 @@ string PlatformGetContentType(string extension)
196197
if (ExtensionToMimeTypeMap.TryGetValue(extension, out var mimeType))
197198
return mimeType;
198199

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
201200
var fileName = Path.GetFileNameWithoutExtension(extension);
202201
if (!string.IsNullOrEmpty(fileName) && fileName.Contains('.', StringComparison.Ordinal))
203202
{

0 commit comments

Comments
 (0)