Skip to content

Commit 624d475

Browse files
committed
fix: default Content-Type to text/html for CTF use cases
1 parent 5c8a5de commit 624d475

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

frontend/src/lib/fileTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export function getContentTypeFromExtension(filename: string): string {
217217
zip: "application/zip",
218218
wasm: "application/wasm",
219219
};
220-
return mimeTypes[ext] || "text/plain; charset=utf-8";
220+
return mimeTypes[ext] || "text/html; charset=utf-8";
221221
}
222222

223223
/**

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)