Skip to content

Commit 6a9d712

Browse files
authored
Update ContentTypes.cs
1 parent 02f4a64 commit 6a9d712

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

EmbeddedSpa/ContentTypes.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ public static class ContentTypes
44
{
55
public static string Get(string path)
66
{
7+
if (path.EndsWith(".wasm")) return "application/wasm";
8+
if (path.EndsWith(".css.br")) return "text/css";
9+
if (path.EndsWith(".css.gz")) return "text/css";
710
if (path.EndsWith(".html")) return "text/html";
811
if (path.EndsWith(".js") || path.EndsWith(".mjs")) return "application/javascript";
912
if (path.EndsWith(".css")) return "text/css";
@@ -34,4 +37,4 @@ public static string Get(string path)
3437
if (path.EndsWith(".manifest")) return "application/manifest+json";
3538
return "application/octet-stream";
3639
}
37-
}
40+
}

0 commit comments

Comments
 (0)