Skip to content

Commit 306ab01

Browse files
kevinkassimory
authored andcommitted
Fix remote .wasm import content type issue (#3351)
1 parent 0fffef8 commit 306ab01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/file_fetcher.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@ fn map_content_type(path: &Path, content_type: Option<&str>) -> msg::MediaType {
522522
map_js_like_extension(path, msg::MediaType::JavaScript)
523523
}
524524
"application/json" | "text/json" => msg::MediaType::Json,
525-
"text/plain" => map_file_extension(path),
525+
// Handle plain and possibly webassembly
526+
"text/plain" | "application/octet-stream" => map_file_extension(path),
526527
_ => {
527528
debug!("unknown content type: {}", content_type);
528529
msg::MediaType::Unknown

0 commit comments

Comments
 (0)