summaryrefslogtreecommitdiff
path: root/backend/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/server.cpp')
-rw-r--r--backend/server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/server.cpp b/backend/server.cpp
index ac8f9fb..b9d6f1c 100644
--- a/backend/server.cpp
+++ b/backend/server.cpp
@@ -302,7 +302,7 @@ bool trySendFile(SOCKET clientSocket, char* filename) {
sprintf(filePath, "../../frontend%s", filename);
bool isBinary = false;
- if (endsWith(filename, ".ico")) {
+ if (endsWith(filename, ".ico") || endsWith(filename, ".wasm")) {
isBinary = true;
}
@@ -322,6 +322,8 @@ bool trySendFile(SOCKET clientSocket, char* filename) {
contentType = "text/css";
} else if (endsWith(filename, ".ico")) {
contentType = "image/x-icon";
+ } else if (endsWith(filename, ".wasm")) {
+ contentType = "application/wasm";
} else {
contentType = "text/plain";
}