mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
SSL: Use better test.
The other one was not working anyway.
This commit is contained in:
parent
afe6caf406
commit
e0332deffc
1 changed files with 4 additions and 3 deletions
|
@ -290,9 +290,10 @@ QUrl ownCloudInfo::redirectUrl(const QUrl& possibleRedirectUrl,
|
|||
void ownCloudInfo::slotReplyFinished()
|
||||
{
|
||||
QNetworkReply *reply = qobject_cast<QNetworkReply *>(sender());
|
||||
if (reply->header(QNetworkRequest::LocationHeader).toUrl().scheme() == QLatin1String("https"))
|
||||
_certificateChain = reply->sslConfiguration().peerCertificateChain();
|
||||
|
||||
QSslConfiguration sslConfig = reply->sslConfiguration();
|
||||
if (!sslConfig.isNull()) {
|
||||
_certificateChain = sslConfig.peerCertificateChain();
|
||||
}
|
||||
|
||||
if( ! reply ) {
|
||||
qDebug() << "ownCloudInfo: Reply empty!";
|
||||
|
|
Loading…
Reference in a new issue