Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 LadybirdBrowser/ladybird#863 Note that this change also reverts the temporary workaround added in LadybirdBrowser/ladybird@f735c464d3f (LadybirdBrowser/ladybird#899). (cherry picked from commit 23da1752b50568f2c49b1c63c2777ddffddaf6f5)
- Loading branch information