set correct mime type for .wasm files (#2636)

in case, getMimeTypeFromExtension()
fails to figure out the mime type for .wasm files,
we set application/wasm manually afterwards
This commit is contained in:
bjoern
2023-08-12 22:56:39 +02:00
committed by GitHub
parent ced9a82cf7
commit 5c51339ccc
@@ -238,6 +238,7 @@ public class WebxdcActivity extends WebViewActivity implements DcEventCenter.DcE
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;
}
}