mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Pass status code to ResourceLoader error callback when available
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/398e44b27b Pull-request: https://github.com/SerenityOS/serenity/pull/15477
@@ -307,7 +307,7 @@ void ResourceLoader::load(LoadRequest& request, Function<void(ReadonlyBytes, Has
|
||||
error_builder.append("Load failed"sv);
|
||||
log_failure(request, error_builder.string_view());
|
||||
if (error_callback)
|
||||
error_callback(error_builder.to_string(), {});
|
||||
error_callback(error_builder.to_string(), status_code);
|
||||
return;
|
||||
}
|
||||
log_success(request);
|
||||
|
||||
Reference in New Issue
Block a user