diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index 317850113f..c3a576df54 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), _ => { diff --git a/cli/tests/055_import_wasm_via_network.ts.out b/cli/tests/055_import_wasm_via_network.ts.out index 586dfd3fff..4c3589e02d 100644 --- a/cli/tests/055_import_wasm_via_network.ts.out +++ b/cli/tests/055_import_wasm_via_network.ts.out @@ -1 +1 @@ -{ __data_end, __dso_handle, __global_base, __heap_base, __wasm_call_ctors, add, memory } +{ add_one: [Function: 0], memory: Memory {} } diff --git a/cli/tests/055_import_wasm_via_network.wasm b/cli/tests/055_import_wasm_via_network.wasm old mode 100755 new mode 100644 index f3be5b237f..fb6d3e471b Binary files a/cli/tests/055_import_wasm_via_network.wasm and b/cli/tests/055_import_wasm_via_network.wasm differ