diff options
author | Robbie Lodico <pandacoder@pm.me> | 2024-10-22 15:38:56 -0400 |
---|---|---|
committer | Robbie Lodico <pandacoder@pm.me> | 2024-10-23 08:10:35 -0400 |
commit | c7f421ef5f836ef132e97ad6aaaa2ab2458f2ea5 (patch) | |
tree | 1c430d2c3b2a4794c1002513a21a826568e260ef /thirdparty/icu4c/common | |
parent | 77dcf97d82cbfe4e4615475fa52ca03da645dbd8 (diff) | |
download | redot-engine-c7f421ef5f836ef132e97ad6aaaa2ab2458f2ea5.tar.gz |
Fix GodotFetch glue code for null response bodies
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
Diffstat (limited to 'thirdparty/icu4c/common')
0 files changed, 0 insertions, 0 deletions