godot/platform
Fabio Alessandrelli 5eabd5e04a [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.

(cherry picked from commit f4713d235a)
2023-09-20 18:40:36 +02:00
..
android [Android] Set `echo` property for the physical keyboard events. 2023-08-31 19:48:16 +02:00
ios libpng: Enable intrinsics on x86/SSE2, ppc64/VSX, and all arm/NEON 2023-08-31 19:26:49 +02:00
linuxbsd Fix Linux `move_to_trash` wrongly reporting files as not found 2023-07-11 12:21:28 +02:00
macos [macOS] Fix uncapped frame rate for windows in the non-active workspaces. 2023-08-31 20:19:30 +02:00
uwp Change explicit 'Godot 4.0' references to 'Godot 4' 2023-07-10 18:09:58 +02:00
web [Web] Always return -1 as body length in HTTPClientWeb. 2023-09-20 18:40:36 +02:00
windows Fix byte to float color conversion in DisplayServerWindows::screen_get_pixel 2023-08-31 20:19:31 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
register_platform_apis.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00