1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00
Files
godot/platform/javascript
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
..
2021-01-13 16:17:06 +01:00
2021-04-05 11:59:38 +02:00
2021-01-04 17:01:42 -06:00
2021-02-18 11:58:08 +01:00
2021-02-18 11:58:08 +01:00
2021-03-20 23:05:13 +01:00
2021-02-26 15:35:45 +01:00
2021-02-26 15:35:45 +01:00