From 357cfaf1a65c3c887947005649daa0c6d3cd428e Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 15 Nov 2018 13:14:25 -0500 Subject: [PATCH] Add mimetype for webassembly 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. --- whitenoise/media_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/whitenoise/media_types.py b/whitenoise/media_types.py index 1a96ceb7..3f5fdfa3 100644 --- a/whitenoise/media_types.py +++ b/whitenoise/media_types.py @@ -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',