Set SSL configuration for the Update checker.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-03-06 11:33:45 +02:00
parent 7350d32dc7
commit a1ebea0a0d

View file

@ -301,6 +301,7 @@ void FvUpdater::startDownloadFeed(const QUrl &url)
request.setHeader(QNetworkRequest::ContentTypeHeader, QStringLiteral("application/xml"));
request.setHeader(QNetworkRequest::UserAgentHeader, QApplication::applicationName());
request.setUrl(url);
request.setSslConfiguration(QSslConfiguration::defaultConfiguration());
m_reply = m_qnam.get(request);
@ -345,7 +346,7 @@ void FvUpdater::httpFeedDownloadFinished()
}
const QVariant redirectionTarget = m_reply->attribute(QNetworkRequest::RedirectionTargetAttribute);
if (m_reply->error())
if (m_reply->error() != QNetworkReply::NoError)
{
// Error.
showErrorDialog(tr("Feed download failed: %1.").arg(m_reply->errorString()), false);