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

LibWeb: Remove usage of URL::set_path() in FrameLoader

This replaces a call to URL::set_path() with URL::set_paths(), as
set_path() will be deprecated and removed.
This commit is contained in:
Max Wipfli 2021-05-27 21:27:51 +02:00 committed by Andreas Kling
parent 915cce5b74
commit 1c4854824b

View file

@ -158,7 +158,7 @@ bool FrameLoader::load(const LoadRequest& request, Type type)
favicon_url.set_protocol(url.protocol()); favicon_url.set_protocol(url.protocol());
favicon_url.set_host(url.host()); favicon_url.set_host(url.host());
favicon_url.set_port(url.port()); favicon_url.set_port(url.port());
favicon_url.set_path("/favicon.ico"); favicon_url.set_paths({ "favicon.ico" });
ResourceLoader::the().load( ResourceLoader::the().load(
favicon_url, favicon_url,