summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorZachary Carter <carterza@gmail.com>2018-07-21 15:42:07 -0400
committerAndreas Rumpf <rumpf_a@web.de>2018-07-21 21:42:07 +0200
commit9379f9353a73acdb9744ab96c0544fb446b11a6a (patch)
tree4914244b8af6eeff784983c6d3be57d8936a2c9c
parent8fe8bed9c3e94cf5f6068e652b99a050f84d6b3f (diff)
downloadNim-9379f9353a73acdb9744ab96c0544fb446b11a6a.tar.gz
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
-rw-r--r--lib/pure/mimetypes.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/mimetypes.nim b/lib/pure/mimetypes.nim
index ff69ba61e..8f5f3a183 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",