Skip to content

Commit

Permalink
set correct mime type for .wasm files (#2636)
Browse files Browse the repository at this point in the history
in case, getMimeTypeFromExtension()
fails to figure out the mime type for .wasm files,
we set application/wasm manually afterwards
  • Loading branch information
r10s authored Aug 12, 2023
1 parent ced9a82 commit 5c51339
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/org/thoughtcrime/securesms/WebxdcActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ protected WebResourceResponse interceptRequest(String rawUrl) {
if (mimeType == null) {
switch (ext) {
case "js": mimeType = "text/javascript"; break;
case "wasm": mimeType = "application/wasm"; break;
default: mimeType = "application/octet-stream"; Log.i(TAG, "unknown mime type for " + rawUrl); break;
}
}
Expand Down

0 comments on commit 5c51339

Please sign in to comment.