Websites: Fix some redirects

This commit is contained in:
Abs62 2022-12-22 21:41:49 +03:00
parent 79f05a23c8
commit 3bcd9cfe37

View file

@ -200,9 +200,10 @@ void WebSiteArticleRequest::requestFinished( QNetworkReply * r )
QUrl redirectUrl = possibleRedirectUrl.toUrl();
if( !redirectUrl.isEmpty() )
{
QUrl newUrl = netReply->url().resolved( redirectUrl );
disconnect( netReply, 0, 0, 0 );
netReply->deleteLater();
netReply = mgr.get( QNetworkRequest( redirectUrl ) );
netReply = mgr.get( QNetworkRequest( newUrl ) );
#ifndef QT_NO_OPENSSL
connect( netReply, SIGNAL( sslErrors( QList< QSslError > ) ),
netReply, SLOT( ignoreSslErrors() ) );