From d424f25fb6849b63bd54d5f1ff49167b085e116b Mon Sep 17 00:00:00 2001 From: Abs62 Date: Thu, 2 Mar 2023 00:46:00 +0300 Subject: [PATCH] Set "https" scheme instead of "http" for some wiki resources --- article_netmgr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/article_netmgr.cc b/article_netmgr.cc index 687535f9..d5a7d08d 100644 --- a/article_netmgr.cc +++ b/article_netmgr.cc @@ -240,9 +240,9 @@ QNetworkReply * ArticleNetworkAccessManager::createRequest( Operation op, { QNetworkRequest localReq( req ); - if( localReq.url().scheme() == "gdlookup" && localReq.url().host() == "upload.wikimedia.org" ) + if( ( localReq.url().scheme() == "gdlookup" || localReq.url().scheme() == "http" ) && localReq.url().host() == "upload.wikimedia.org" ) { - // Handle some requests from offline wikipedia/wiktionary without scheme + // Handle some requests from offline wikipedia/wiktionary without scheme or with "http" scheme QUrl newUrl( req.url() ); newUrl.setScheme( "https" );