Skip to content

Commit

Permalink
Update PathUtils.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrundritt committed Aug 8, 2024
1 parent 7967e0d commit 331c92c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HybridWebView/PathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public static bool TryGetMimeType(string? mimeTypeOrFileExtension, out string? m
//Other binary file types
"zip" => "application/zip",
"pbf" or "x-protobuf" => "application/x-protobuf",
"mvt" or "vnd.mapbox-vector-tile" => "application/vnd.mapbox-vector-tile",
"kmz" or "vnd.google-earth.kmz" or "shp" or "dbf" or "bin" or "b3dm" or "i3dm" or "pnts" or "subtree" or "octet-stream" => "application/octet-stream",
"pdf" => "application/pdf",

Expand All @@ -207,7 +208,7 @@ public static bool TryGetMimeType(string? mimeTypeOrFileExtension, out string? m

//Text based file types
"htm" or "html" => "text/html",
"xhtml" => "application/xhtml+xml",
"xhtml" or "xhtml+xml" => "application/xhtml+xml",
"js" or "javascript" => "text/javascript",
"css" => "text/css",
"csv" => "text/csv",
Expand Down

0 comments on commit 331c92c

Please sign in to comment.