summaryrefslogtreecommitdiffstats
path: root/platform/web/js/libs/library_godot_fetch.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix GodotFetch glue code for null response bodiesRobbie Lodico2024-10-231-2/+14
| | | | | | | | | | | The spec says that Response.body can be null (in the event of requests that should have no body, like HEAD requests) and Firefox adheres to it which results in request failure for HEAD requests on Firefox for web exports. This commit addresses that by treating a null body as an "empty" body (without using a polyfill) and avoids changing the request lifecycle as much as possible. PR review changes: - Use == instead of strict === - Do not use ?? null - Comment formatting
* Add `proxy_to_pthread` option to `platform=web`Adam Scott2023-10-091-0/+7
| | | | Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
* [Web] Always return -1 as body length in HTTPClientWeb.Fabio Alessandrelli2023-07-241-15/+0
| | | | | | | | | | | | | | | 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.
* Fix `HTTPClient.get_response_body_length()` incorrect on WebZae2023-05-301-0/+5
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* [Web] Rename JavaScript platform to Web.Fabio Alessandrelli2022-08-291-0/+247
Also rename export name from "HTML5" to "Web".