mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
updater: exit a possible redirect loop
This commit is contained in:
@@ -1286,6 +1286,8 @@ void MainWindow::httpresponse(QNetworkReply *reply)
|
||||
|
||||
if(!possibleRedirectUrl.toUrl().isEmpty())
|
||||
{
|
||||
if(reply->url() == possibleRedirectUrl.toUrl())
|
||||
return; // escape possible redirect loop
|
||||
m_NetworkManager->get(QNetworkRequest(possibleRedirectUrl.toUrl()));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user