mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
|
@ -2024,10 +2024,10 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<PendingResponse>> http_network_or_cache_fet
|
|||
auto password = ByteString::empty();
|
||||
|
||||
// 3. Set the username given request’s current URL and username.
|
||||
MUST(request->current_url().set_username(username));
|
||||
request->current_url().set_username(username);
|
||||
|
||||
// 4. Set the password given request’s current URL and password.
|
||||
MUST(request->current_url().set_password(password));
|
||||
request->current_url().set_password(password);
|
||||
}
|
||||
|
||||
// 4. Set response to the result of running HTTP-network-or-cache fetch given fetchParams and true.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue