LibWeb: Recognise and pass gemini URLs to ProtocolServer

This commit is contained in:
Conrad Pankoff 2020-05-14 18:36:47 +10:00 committed by Andreas Kling
parent aaa6f90c34
commit 184ee8ac77

View file

@ -113,7 +113,7 @@ void ResourceLoader::load(const URL& url, Function<void(const ByteBuffer&, const
return;
}
if (url.protocol() == "http" || url.protocol() == "https") {
if (url.protocol() == "http" || url.protocol() == "https" || url.protocol() == "gemini") {
auto download = protocol_client().start_download(url.to_string());
if (!download) {
if (error_callback)