diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/URL.cpp b/Userland/Libraries/LibWeb/Fetch/Infrastructure/URL.cpp index a7872e2f415..51f00a8108c 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/URL.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/URL.cpp @@ -6,9 +6,9 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include #include #include +#include namespace Web::Fetch::Infrastructure { @@ -77,9 +77,8 @@ ErrorOr process_data_url(URL::URL const& data_url) auto string_body = StringView(body); // 2. Set body to the forgiving-base64 decode of stringBody. - // FIXME: Check if it's really forgiving. // 3. If body is failure, then return failure. - body = TRY(decode_base64(string_body)); + body = TRY(Infra::decode_forgiving_base64(string_body)); // 4. Remove the last 6 code points from mimeType. // 5. Remove trailing U+0020 SPACE code points from mimeType, if any.