godot/platform
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
..
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] Disable body_size in fetch. 2021-04-05 11:59:38 +02:00
osx [macOS] Enable code signing by default, use ad-hoc signature if no identity specified. 2021-03-29 14:29:54 +02: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 Windows: Disable ASLR protection w/ MinGW, it breaks Mono 2021-03-29 14:39:20 +02: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