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

Ladybird+LibWeb+WebContent: Port the did_request_cookie IPC to String

This commit is contained in:
Timothy Flynn 2024-01-26 11:10:15 -05:00 committed by Andreas Kling
parent dcd9962d7b
commit 85b8971a80
14 changed files with 16 additions and 16 deletions

View file

@ -16,9 +16,9 @@ LoadRequest LoadRequest::create_for_url_on_page(const AK::URL& url, Page* page)
request.set_url(url);
if (page) {
ByteString cookie = page->client().page_did_request_cookie(url, Cookie::Source::Http);
auto cookie = page->client().page_did_request_cookie(url, Cookie::Source::Http);
if (!cookie.is_empty())
request.set_header("Cookie", cookie);
request.set_header("Cookie", cookie.to_byte_string());
request.set_page(*page);
}