mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +00:00
ProtocolServer: Pass HTTP response headers to the client
We now store the response headers in a download object on the protocol server side and pass it to the client when finishing up a download. Response headers are passed as an IPC::Dictionary. :^)
This commit is contained in:
@@ -82,7 +82,7 @@ void HTMLScriptElement::inserted_into(Node& new_parent)
|
||||
}
|
||||
|
||||
String source;
|
||||
ResourceLoader::the().load_sync(src_url, [&](auto& data) {
|
||||
ResourceLoader::the().load_sync(src_url, [&](auto& data, auto&) {
|
||||
if (data.is_null()) {
|
||||
dbg() << "HTMLScriptElement: Failed to load " << src;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user