diff options
author | Max Wipfli <mail@maxwipfli.ch> | 2021-05-27 21:27:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-01 09:28:05 +0200 |
commit | 1c4854824b38e7324e7d47d3f9fa5e2a46955bc4 (patch) | |
tree | 141f6398f882846c8655923f89cf460fbb65844e /Userland/Libraries/LibWeb/Loader | |
parent | 915cce5b74960c946fff8da10b87728b150f90d4 (diff) | |
download | serenity-1c4854824b38e7324e7d47d3f9fa5e2a46955bc4.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/FrameLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp index df5b565da1..36bcf02cbe 100644 --- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -158,7 +158,7 @@ bool FrameLoader::load(const LoadRequest& request, Type type) favicon_url.set_protocol(url.protocol()); favicon_url.set_host(url.host()); favicon_url.set_port(url.port()); - favicon_url.set_path("/favicon.ico"); + favicon_url.set_paths({ "favicon.ico" }); ResourceLoader::the().load( favicon_url, |