mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
AK: Remove URL::ApplyPercentEncoding
Everywhere only ever expects percent encoding to occur, so let's just remove this flag altogether. At the same time, replace some DeprecatedString with StringView.
This commit is contained in:
parent
c4d7be100e
commit
98666b012d
6 changed files with 30 additions and 45 deletions
|
@ -237,7 +237,7 @@ void URL::set_username(String const& username)
|
|||
return;
|
||||
|
||||
// 2. Set the username given this’s URL and the given value.
|
||||
m_url.set_username(username.to_deprecated_string(), AK::URL::ApplyPercentEncoding::Yes);
|
||||
m_url.set_username(username);
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-url-password
|
||||
|
@ -257,7 +257,7 @@ void URL::set_password(String const& password)
|
|||
return;
|
||||
|
||||
// 2. Set the password given this’s URL and the given value.
|
||||
m_url.set_password(password.to_deprecated_string(), AK::URL::ApplyPercentEncoding::Yes);
|
||||
m_url.set_password(password);
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-url-host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue