From 83a690c19ebe69eb2c7cbc63efb8b0f87bd2bec2 Mon Sep 17 00:00:00 2001 From: Zachary Carter Date: Sat, 21 Jul 2018 15:42:07 -0400 Subject: [PATCH] Add application/wasm to mimetypes.nim (#8389) ``` To serve wasm in the most efficient way over the network, make sure your web server has the proper MIME time for .wasm files, which is application/wasm. That will allow streaming compilation, where the browser can start to compile code as it downloads. ``` http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#web-server-setup --- lib/pure/mimetypes.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pure/mimetypes.nim b/lib/pure/mimetypes.nim index ff69ba61e242d..8f5f3a183f33a 100644 --- a/lib/pure/mimetypes.nim +++ b/lib/pure/mimetypes.nim @@ -231,6 +231,7 @@ const mimes* = { "xcf": "application/x-xcf", "fig": "application/x-xfig", "xpi": "application/x-xpinstall", + "wasm": "application/wasm", "amr": "audio/amr", "awb": "audio/amr-wb", "amr": "audio/amr",