OSDN Git Service

plasma: update geolocation service URL
authorIvailo Monev <xakepa10@gmail.com>
Wed, 28 Jul 2021 02:00:16 +0000 (05:00 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Wed, 28 Jul 2021 02:00:16 +0000 (05:00 +0300)
for reference:
https://github.com/fluxer/katana/issues/24

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
plasma/dataengines/geolocation/location_ip.cpp

index 53bcc3e..e0725d5 100644 (file)
@@ -81,11 +81,11 @@ Ip::~Ip()
 void Ip::update()
 {
     d->payload.clear();
-    KIO::TransferJob *datajob = KIO::get(KUrl("http://api.hostip.info/get_html.php?position=true"),
+    KIO::TransferJob *datajob = KIO::get(KUrl("https://api.hostip.info/get_html.php?position=true"),
                                          KIO::NoReload, KIO::HideProgressInfo);
 
     if (datajob) {
-        kDebug() << "Fetching http://api.hostip.info/get_html.php?position=true";
+        kDebug() << "Fetching https://api.hostip.info/get_html.php?position=true";
         connect(datajob, SIGNAL(data(KIO::Job*,QByteArray)), this,
                 SLOT(readData(KIO::Job*,QByteArray)));
         connect(datajob, SIGNAL(result(KJob*)), this, SLOT(result(KJob*)));