1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

AK+Tests+LibWeb: Make URL::complete_url() take a StringView

All it does is pass this to `URLParser::parse()` which takes a
StringView, so we might as well take one here too.
This commit is contained in:
Sam Atkins 2023-02-13 17:42:27 +00:00 committed by Tim Flynn
parent 8af65108e4
commit abc01cc9fe
5 changed files with 7 additions and 7 deletions

View file

@ -403,7 +403,7 @@ TEST_CASE(complete_file_url_with_base)
EXPECT_EQ(url.paths()[0], "home");
EXPECT_EQ(url.paths()[1], "index.html");
auto sub_url = url.complete_url("js/app.js");
auto sub_url = url.complete_url("js/app.js"sv);
EXPECT(sub_url.is_valid());
EXPECT_EQ(sub_url.path(), "/home/js/app.js");
}