summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sys
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-04-20 19:47:23 +0200
committerLinus Groh <mail@linusgroh.de>2021-04-20 19:47:23 +0200
commit7400e3d8fc5ecd2be83830cab0c9bf560b7d2105 (patch)
tree65d3c23337b057c0187ce00430db0172dcda50bc /Userland/Libraries/LibC/sys
parent7af1d2c17056417d520c3e94db3151bf45bc82ed (diff)
downloadserenity-7400e3d8fc5ecd2be83830cab0c9bf560b7d2105.zip
LibWeb: Don't call ResourceLoader error callback on 4xx status code
A website with a 4xx status code is still a valid website, we should not artificially hide it. In fact, many websites implement custom 404 error pages for example, often containing search functionality or links back to the homepage. This might have implications regarding the loading of stylesheets where the request 404s, but since we were not handling 5xx status codes as errors either, I think that's fine for now (but might need additional work later). Worst case, the parser rejects to load some error page HTML as CSS :^)
Diffstat (limited to 'Userland/Libraries/LibC/sys')
0 files changed, 0 insertions, 0 deletions