Skip to content

Commit

Permalink
Add application/wasm to mimetypes.nim (nim-lang#8389)
Browse files Browse the repository at this point in the history
```
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
  • Loading branch information
zacharycarter authored and Araq committed Jul 21, 2018
1 parent 8fe8bed commit 9379f93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pure/mimetypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9379f93

Please sign in to comment.