mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibURL: Make percent_encode return a String
This simplifies a bunch of places which were needing to error check and convert from a ByteString to String.
This commit is contained in:
parent
c58665332e
commit
84a7fead0e
Notes:
github-actions[bot]
2024-08-10 08:47:40 +00:00
Author: https://github.com/shannonbooth
Commit: 84a7fead0e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1023
Reviewed-by: https://github.com/awesomekling
9 changed files with 23 additions and 26 deletions
|
@ -260,7 +260,7 @@ void DOMURL::set_username(String const& username)
|
|||
return;
|
||||
|
||||
// 2. Set the username given this’s URL and the given value.
|
||||
MUST(m_url.set_username(username));
|
||||
m_url.set_username(username);
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-url-password
|
||||
|
@ -278,7 +278,7 @@ void DOMURL::set_password(String const& password)
|
|||
return;
|
||||
|
||||
// 2. Set the password given this’s URL and the given value.
|
||||
MUST(m_url.set_password(password));
|
||||
m_url.set_password(password);
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-url-host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue