1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibWeb: Make ResourceLoader pass body and headers in error callback

Pass body and headers of a failed request to callback so caller can
process them.
This commit is contained in:
Aliaksandr Kalenik 2023-10-02 19:19:26 +02:00 committed by Andreas Kling
parent 50350fb79c
commit b9e0ad4358
4 changed files with 20 additions and 16 deletions

View file

@ -314,7 +314,7 @@ void Worker::run_a_worker(AK::URL& url, EnvironmentSettingsObject& outside_setti
// 28. Event loop: Run the responsible event loop specified by inside settings until it is destroyed.
},
[](auto&, auto) {
[](auto&, auto, auto, auto&) {
dbgln_if(WEB_WORKER_DEBUG, "WebWorker: HONK! Failed to load script.");
});
}