lcHttpManager enable HTTP redirection

This commit is contained in:
cambrialas 2024-11-27 21:33:07 +01:00
parent dcfda1e22b
commit 0bd6fa3151

View file

@ -81,7 +81,10 @@ lcHttpManager::lcHttpManager(QObject* Owner)
lcHttpReply* lcHttpManager::lcHttpManager::DownloadFile(const QString& Url)
{
return (lcHttpReply*)get(QNetworkRequest(QUrl(Url)));
QNetworkRequest req = QNetworkRequest(QUrl(Url));
req.setAttribute(QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::NoLessSafeRedirectPolicy);
return (lcHttpReply*)get(req);
}
void lcHttpManager::Finished(QNetworkReply* Reply)