virtualx-engine/platform/web/js/libs
Fabio Alessandrelli f4713d235a [Web] Always return -1 as body length in HTTPClientWeb.
Body length cannot be reliably retrieved from the web.
Reading the "content-length" value will return a meaningless value when
the response is compressed, as reading will return uncompressed chunks
in any case, resulting in a mismatch between the detected body size and
the actual size returned by repeatedly calling read_response_body_chunk.

Additionally, while "content-length" is considered a safe CORS header,
"content-encoding" is not, so using the "content-encoding" to decide if
"content-length" is meaningful is not an option either.

We simply must accept the fact that browsers are awful when it comes to
networking APIs.
2023-07-24 08:57:02 +02:00
..
audio.worklet.js One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
library_godot_audio.js Further refactoring to AudioDriver implementations after #69120. 2023-02-09 11:02:00 +01:00
library_godot_display.js Merge pull request #78437 from bruvzg/set_icon 2023-07-12 15:09:14 +02:00
library_godot_fetch.js [Web] Always return -1 as body length in HTTPClientWeb. 2023-07-24 08:57:02 +02:00
library_godot_input.js One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
library_godot_javascript_singleton.js One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
library_godot_os.js [Web] Detect host OS and use macOS keys on mac hosts. 2023-04-11 10:58:54 +03:00
library_godot_runtime.js One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
library_godot_webgl2.externs.js Get WebXR fully working in Godot 4! 2022-12-01 21:46:30 -06:00
library_godot_webgl2.js One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00