1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

AK: Stop using DeprecatedString in Base64 encoding

This commit is contained in:
Jelle Raaijmakers 2022-12-19 00:23:47 +01:00 committed by Andreas Kling
parent 99c1b634fc
commit 25f2e4981c
Notes: sideshowbarker 2024-07-17 05:23:40 +09:00
14 changed files with 47 additions and 27 deletions

View file

@ -242,7 +242,9 @@ Optional<HttpRequest::Header> HttpRequest::get_http_basic_authentication_header(
builder.append(url.username());
builder.append(':');
builder.append(url.password());
auto token = encode_base64(builder.to_deprecated_string().bytes());
// FIXME: change to TRY() and make method fallible
auto token = MUST(encode_base64(MUST(builder.to_string()).bytes()));
builder.clear();
builder.append("Basic "sv);
builder.append(token);