mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibWeb: Implement '5.4. Request class' from the Fetch API :^)
This commit is contained in:
parent
5ad6283331
commit
9fb672e981
13 changed files with 1146 additions and 3 deletions
|
@ -36,7 +36,8 @@ void Request::set_url(AK::URL url)
|
|||
// Sometimes setting the URL and URL list are done as two distinct steps in the spec,
|
||||
// but since we know the URL is always the URL list's first item and doesn't change later
|
||||
// on, we can combine them.
|
||||
VERIFY(m_url_list.is_empty());
|
||||
if (!m_url_list.is_empty())
|
||||
m_url_list.clear();
|
||||
m_url_list.append(move(url));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue