Skip to content

Commit

Permalink
Add wasm mime
Browse files Browse the repository at this point in the history
  • Loading branch information
tong committed Jun 12, 2024
1 parent e85b4f1 commit 2c02f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wtri/handler/FileSystemHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class FileSystemHandler implements wtri.Handler {
this.path = FileSystem.fullPath(path.trim()).removeTrailingSlashes();
this.mime = mime ?? [
"css" => TextCss, "gif" => ImageGif, "html" => TextHtml, "ico" => "image/x-icon", "jpg" => ImageJpeg, "jpeg" => ImageJpeg, "js" => TextJavascript,
"json" => ApplicationJson, "png" => ImagePng, "svg" => "image/svg+xml", "txt" => TextPlain, "webp" => ImageWebp, "woff" => "font/woff",
"woff2" => "font/woff2", "xml" => ApplicationXml,
"json" => ApplicationJson, "png" => ImagePng, "svg" => "image/svg+xml", "txt" => TextPlain, "wasm" => "application/wasm", "webp" => ImageWebp,
"woff" => "font/woff", "woff2" => "font/woff2", "xml" => ApplicationXml,
];
this.indexFileNames = indexFileNames ?? ["index"];
this.indexFileTypes = indexFileTypes ?? ["html", "htm"];
Expand Down

0 comments on commit 2c02f27

Please sign in to comment.