mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
Add content type for wasm, fix encoding in wasm test fixture (#4269)
This commit is contained in:
parent
acf0958e94
commit
5e31b96f9a
3 changed files with 2 additions and 1 deletions
|
@ -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),
|
||||
_ => {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{ __data_end, __dso_handle, __global_base, __heap_base, __wasm_call_ctors, add, memory }
|
||||
{ add_one: [Function: 0], memory: Memory {} }
|
||||
|
|
BIN
cli/tests/055_import_wasm_via_network.wasm
Executable file → Normal file
BIN
cli/tests/055_import_wasm_via_network.wasm
Executable file → Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue