mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibWeb: Make Document::set_cookie take a StringView
Enabled by also making the same change to ParsedCookie::parse_cookie :^)
This commit is contained in:
parent
642802d339
commit
8ad05fff4a
4 changed files with 4 additions and 4 deletions
|
@ -1967,7 +1967,7 @@ DeprecatedString Document::cookie(Cookie::Source source)
|
|||
return {};
|
||||
}
|
||||
|
||||
void Document::set_cookie(DeprecatedString const& cookie_string, Cookie::Source source)
|
||||
void Document::set_cookie(StringView cookie_string, Cookie::Source source)
|
||||
{
|
||||
auto cookie = Cookie::parse_cookie(cookie_string);
|
||||
if (!cookie.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue