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:
parent
50350fb79c
commit
b9e0ad4358
4 changed files with 20 additions and 16 deletions
|
@ -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.");
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue