mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
Fix remote .wasm import content type issue (#3351)
This commit is contained in:
parent
0fffef8e5a
commit
306ab015e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user