1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00

LibWeb: Set Cookie header on remaining resource requests

This commit is contained in:
Timothy Flynn 2021-04-14 10:41:14 -04:00 committed by Andreas Kling
parent 0cacc52990
commit 0f47a23e8e
Notes: sideshowbarker 2024-07-18 20:18:56 +09:00
4 changed files with 5 additions and 9 deletions

View file

@ -202,9 +202,8 @@ DOM::ExceptionOr<void> XMLHttpRequest::send()
return {};
}
LoadRequest request;
auto request = LoadRequest::create_for_url_on_page(request_url, m_window->document().page());
request.set_method(m_method);
request.set_url(request_url);
for (auto& it : m_request_headers)
request.set_header(it.key, it.value);