godot/platform
Fabio Alessandrelli 6181452a54
[HTML5] Fix loading when mime-type is missing.
`WebAssembly.instantiateStreaming` requires the mime-type to be
`application/wasm`, but some servers (including most debug servers) do
not provide the content-type header.

This commit forces it via JavaScript, by creating a `Response` object
with the `wasm` content, and explicitly defined `content-type` header.

(cherry picked from commit 778ef4e217)
2021-03-20 23:10:00 +01:00
..
android Allow to not optimize release build 2021-03-20 23:05:13 +01:00
iphone Allow to not optimize release build 2021-03-20 23:05:13 +01:00
javascript [HTML5] Fix loading when mime-type is missing. 2021-03-20 23:10:00 +01:00
osx Allow to not optimize release build 2021-03-20 23:05:13 +01:00
server Allow to not optimize release build 2021-03-20 23:05:13 +01:00
uwp Allow to not optimize release build 2021-03-20 23:05:13 +01:00
windows Allow to not optimize release build 2021-03-20 23:05:13 +01:00
x11 Allow to not optimize release build 2021-03-20 23:05:13 +01:00
register_platform_apis.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00