diff options
Diffstat (limited to 'AK/URL.cpp')
-rw-r--r-- | AK/URL.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AK/URL.cpp b/AK/URL.cpp index 6b84a6c6ea..505213d4e7 100644 --- a/AK/URL.cpp +++ b/AK/URL.cpp @@ -444,11 +444,12 @@ u16 URL::default_port_for_protocol(const String& protocol) return 0; } -URL URL::create_with_file_protocol(const String& path) +URL URL::create_with_file_protocol(const String& path, const String& fragment) { URL url; url.set_protocol("file"); url.set_path(path); + url.set_fragment(fragment); return url; } |