Commit 1aed51de authored by Laurent Montel's avatar Laurent Montel 😁

This service uses https too

parent d42561ce
......@@ -40,7 +40,7 @@ QString TripAbShortUrlEngineInterface::engineName() const
void TripAbShortUrlEngineInterface::generateShortUrl()
{
const QString requestUrl = QStringLiteral("http://to.ly/api.php?longurl=%1").arg(mOriginalUrl);
const QString requestUrl = QStringLiteral("https://to.ly/api.php?longurl=%1").arg(mOriginalUrl);
QNetworkReply *reply = mNetworkAccessManager->get(QNetworkRequest(QUrl(requestUrl)));
connect(reply, QOverload<QNetworkReply::NetworkError>::of(&QNetworkReply::error), this, &TripAbShortUrlEngineInterface::slotErrorFound);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment