mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-12 20:11:51 +00:00
LibCore+LibHTTP: Move out the HTTP handler and add HTTPS
This commit is contained in:
parent
8d20a526e5
commit
7670e5ccf0
Notes:
sideshowbarker
2024-07-19 07:04:57 +09:00
Author: https://github.com/alimpfard
Commit: 7670e5ccf0
Pull-request: https://github.com/SerenityOS/serenity/pull/1661
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/itamar8910
27 changed files with 613 additions and 70 deletions
|
@ -105,7 +105,7 @@ void ResourceLoader::load(const URL& url, Function<void(const ByteBuffer&)> succ
|
|||
return;
|
||||
}
|
||||
|
||||
if (url.protocol() == "http") {
|
||||
if (url.protocol() == "http" || url.protocol() == "https") {
|
||||
auto download = protocol_client().start_download(url.to_string());
|
||||
if (!download) {
|
||||
if (error_callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue