diff options
author | Aurélien Bertron <aurelien.bertron@stormshield.eu> | 2020-03-06 17:31:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 11:31:22 -0500 |
commit | 5e31b96f9ab72b9a9b480fd2fc0669a7f90cca17 (patch) | |
tree | fee1b8fc7a2414518513abf87bc66515f215709b /cli/file_fetcher.rs | |
parent | acf0958e940f8c668c9f34dc780da48d8963a1e7 (diff) |
Add content type for wasm, fix encoding in wasm test fixture (#4269)
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r-- | cli/file_fetcher.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index 317850113..c3a576df5 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -529,6 +529,7 @@ fn map_content_type(path: &Path, content_type: Option<&str>) -> msg::MediaType { map_js_like_extension(path, msg::MediaType::JavaScript) } "application/json" | "text/json" => msg::MediaType::Json, + "application/wasm" => msg::MediaType::Wasm, // Handle plain and possibly webassembly "text/plain" | "application/octet-stream" => map_file_extension(path), _ => { |