diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-04-03 14:51:54 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-04-03 15:05:36 +0200 |
commit | 737ed0f66ea2f5351b440c4a387091c5374758b3 (patch) | |
tree | 47210085eafe29a210eeec408679d0c1e90b0367 /platform/windows/lang_table.h | |
parent | ed2f51b15fee22a35d2a975fd77a70fc291bd8de (diff) |
[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.
Diffstat (limited to 'platform/windows/lang_table.h')
0 files changed, 0 insertions, 0 deletions