updater: exit a possible redirect loop

This commit is contained in:
Peinthor Rene
2014-05-16 18:24:26 +02:00
parent 74d72bacda
commit 1fdf3e4fd4

View File

@@ -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;
}