Skip to content

Commit

Permalink
fix(Android): return proper mimeType for wasm files
Browse files Browse the repository at this point in the history
  • Loading branch information
yoldar authored and jcesarmobile committed Aug 15, 2019
1 parent f5c0bbd commit 0eb8a37
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ private String getMimeType(String path, InputStream stream) {
if (path.endsWith(".js")) {
// Make sure JS files get the proper mimetype to support ES modules
mimeType = "application/javascript";
} else if (path.endsWith(".wasm")) {
mimeType = "application/wasm";
} else {
mimeType = URLConnection.guessContentTypeFromStream(stream);
}
Expand Down

0 comments on commit 0eb8a37

Please sign in to comment.