mirror of
https://github.com/leozide/leocad
synced 2024-12-25 21:58:23 +01:00
lcHttpManager enable HTTP redirection
This commit is contained in:
parent
dcfda1e22b
commit
0bd6fa3151
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue