virtualx-engine/platform/javascript/js/libs
Fabio Alessandrelli f90b24a805
[HTML5] Disable body_size in fetch.
We were using `Content-Length` from the server when `Content-Encoding`
was not set (i.e. response was not compressed).

Sadly, in CORS requests accessing headers is restricted, and while
`Content-Length` is enabled by default, `Content-Encoding` is not.

This results in the impossibility of knowing if the content was
compressed, unless the server explicitly enabled the encoding header
via `Access-Control-Expose-Headers`.

To keep maximum compatibility we must disable `body_size` completely.

(cherry picked from commit 737ed0f66e)
2021-04-05 11:59:38 +02:00
..
audio.worklet.js Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
library_godot_audio.js [HTML5] Catch audio worklet errors on disconnect. 2021-03-08 17:06:41 +01:00
library_godot_display.js [HTML5] Fix WM notifications not being called. 2021-03-29 21:09:19 +02:00
library_godot_editor_tools.js Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
library_godot_eval.js Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
library_godot_fetch.js [HTML5] Disable body_size in fetch. 2021-04-05 11:59:38 +02:00
library_godot_os.js [HTML5] Drag and drop zip in project manager. 2021-03-12 10:43:52 +01:00
library_godot_runtime.js [HTML5] Rename heapCopy to heapSlice. 2021-03-05 17:32:17 +01:00