Skip to content

Commit

Permalink
Add mimetype for webassembly
Browse files Browse the repository at this point in the history
This adds a media type for webassembly modules.

According to this part of the [WebAssembly standard](https://www.w3.org/TR/wasm-web-api-1/#streaming-modules), web browsers must reject the compilation of webassembly modules that don't have the correct mimetype, so it's pretty critical for applications serving .wasm.
  • Loading branch information
mdboom committed Nov 15, 2018
1 parent 3e2e4e6 commit 357cfaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whitenoise/media_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def default_types():
'.tk': 'application/x-tcl',
'.ts': 'video/mp2t',
'.txt': 'text/plain',
'.wasm': 'application/wasm',
'.war': 'application/java-archive',
'.wbmp': 'image/vnd.wap.wbmp',
'.webm': 'video/webm',
Expand Down

0 comments on commit 357cfaf

Please sign in to comment.