LibWeb+LibURL: Default empty string paths to URL's path in CookieStore

This commit is contained in:
Idan Horowitz 2025-08-16 16:34:43 +03:00 committed by Jelle Raaijmakers
commit 1f1adb6d7e
Notes: github-actions[bot] 2025-08-17 20:18:38 +00:00
3 changed files with 59 additions and 26 deletions

View file

@ -85,6 +85,11 @@ void URL::set_paths(Vector<ByteString> const& paths)
m_data->paths.unchecked_append(percent_encode(segment, PercentEncodeSet::Path));
}
void URL::set_raw_paths(Vector<String> paths)
{
m_data->paths = move(paths);
}
void URL::append_path(StringView path)
{
m_data->paths.append(percent_encode(path, PercentEncodeSet::Path));