diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-11-14 21:14:08 -0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-11-15 00:14:08 -0500 |
commit | 306ab015e8d5601764c7c505cd6bc90361cd4504 (patch) | |
tree | d261af161816ba417abaf7c3648c12f743f925a6 /cli/file_fetcher.rs | |
parent | 0fffef8e5afed754358efc5b41d93549592cd941 (diff) |
Fix remote .wasm import content type issue (#3351)
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r-- | cli/file_fetcher.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index d28ed0e26..be3b1a196 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -522,7 +522,8 @@ 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, - "text/plain" => map_file_extension(path), + // Handle plain and possibly webassembly + "text/plain" | "application/octet-stream" => map_file_extension(path), _ => { debug!("unknown content type: {}", content_type); msg::MediaType::Unknown |