ladybird/Userland/Libraries/LibWeb/Fetch
sideshowbarker 23da1752b5 LibWeb/Fetch: Set HTTP status code on cached responses
This change causes HTTP status codes to be set on cached HTTP responses.

Otherwise, without this change, no status codes at all are set on cached
HTTP responses — which causes all cached responses to default to being
loaded/served with a 200 status code. And as a result of that, if the
cached response is from a 30x redirect, then without this change, when
that cached 30x response is loaded, we don’t follow the redirect —
because we see a 200 status, rather than the expected/original 30x.

Fixes https://github.com/LadybirdBrowser/ladybird/issues/863

Note that this change also reverts the temporary workaround added in
f735c464d3
(https://github.com/LadybirdBrowser/ladybird/pull/899).
2024-08-14 14:49:04 +02:00
..
Fetching LibWeb/Fetch: Set HTTP status code on cached responses 2024-08-14 14:49:04 +02:00
Infrastructure LibWeb/Fetch: Correct check for X-Method-Override 2024-08-05 10:01:34 +02:00
Body.cpp LibWeb: Don't propogate small OOMs from URLSearchParams 2024-08-12 23:01:29 +01:00
Body.h LibWeb/Fetch: Implement Body::bytes() 2024-05-19 16:25:50 +02:00
Body.idl LibWeb/Fetch: Implement Body::bytes() 2024-05-19 16:25:50 +02:00
BodyInit.cpp LibWeb: Don't propogate small OOMs from URLSearchParams 2024-08-12 23:01:29 +01:00
BodyInit.h LibWeb: Rename URL platform object to DOMURL 2024-02-25 08:54:31 +01:00
BodyInit.idl LibWeb: Rename URL platform object to DOMURL 2024-02-25 08:54:31 +01:00
Enums.cpp LibWeb/Fetch: Support setting request priority from JS 2024-05-07 17:27:37 -06:00
Enums.h LibWeb/Fetch: Support setting request priority from JS 2024-05-07 17:27:37 -06:00
FetchMethod.cpp LibWeb/Fetch: Don't crash when a fetch request times out 2024-04-14 13:36:25 +02:00
FetchMethod.h LibWeb/HTML: Port Window.fetch() to IDL 2023-03-07 23:33:34 +00:00
Headers.cpp LibWeb: Remove OOM propagation from Fetch::Headers 2024-04-28 12:32:04 +02:00
Headers.h LibWeb: Remove OOM propagation from Fetch::Headers 2024-04-28 12:32:04 +02:00
Headers.idl LibWeb: Add comments and missing items of various IDL files 2023-10-25 19:45:41 +02:00
HeadersIterator.cpp LibWeb: Remove OOM propagation from Fetch::Infrastructure::Headers 2024-04-27 07:08:14 +02:00
HeadersIterator.h LibWeb: Remove OOM propagation from Fetch::Infrastructure::Headers 2024-04-27 07:08:14 +02:00
Request.cpp LibWeb+LibURL: Use URL paths directly for comparison 2024-08-05 09:58:13 +02:00
Request.h LibWeb/Fetch: Support setting request priority from JS 2024-05-07 17:27:37 -06:00
Request.idl LibWeb/Fetch: Support setting request priority from JS 2024-05-07 17:27:37 -06:00
Response.cpp LibWeb: Assign the Content-Type fetch response header as appropriate 2024-04-28 12:32:04 +02:00
Response.h LibWeb: Remove OOM propagation from Fetch::Response 2024-04-28 12:32:04 +02:00
Response.idl LibWeb: Add comments and missing items of various IDL files 2023-10-25 19:45:41 +02:00