summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-20 23:09:45 +0100
committerGitHub <noreply@github.com>2021-03-20 23:09:45 +0100
commit6d13bfc914beba391051bc213ba8fc4118825d87 (patch)
treeebb2272968e17b906595bbaa3b646e461dde223f /platform
parent9febc206fe8ea8107eb420b0c6ff7a0ae7fbff0f (diff)
parent778ef4e217e6d4a967741b83cf1a0d13fb482755 (diff)
Merge pull request #47191 from Faless/js/4.x_force_mime
[HTML5] Fix loading when mime-type is missing.
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/js/engine/engine.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/js/engine/engine.js b/platform/javascript/js/engine/engine.js
index 19a0552c8c..7211ebbfd8 100644
--- a/platform/javascript/js/engine/engine.js
+++ b/platform/javascript/js/engine/engine.js
@@ -102,7 +102,7 @@ const Engine = (function () {
const me = this;
function doInit(promise) {
return promise.then(function (response) {
- return Godot(me.config.getModuleConfig(loadPath, response.clone()));
+ return Godot(me.config.getModuleConfig(loadPath, new Response(response.clone().body, { 'headers': [['content-type', 'application/wasm']] })));
}).then(function (module) {
const paths = me.config.persistentPaths;
return module['initFS'](paths).then(function (err) {