summaryrefslogtreecommitdiffstats
path: root/platform/javascript/js/libs/library_godot_fetch.js
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* [HTML5] Fix some JS library signature.Fabio Alessandrelli2021-06-141-3/+3
|
* Fixed missed IDHandler dependency in GodotFetchArthur Bikmullin2021-06-081-1/+1
|
* [HTML5] Disable body_size in fetch.Fabio Alessandrelli2021-04-031-12/+1
| | | | | | | | | | | | | | 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.
* [HTML5] Replace XMLHttpRequest with Fetch.Fabio Alessandrelli2021-03-061-0/+258
This has some advantages: - Streaming/chunked response support. - Broader headers support.