Commit 0b4837cb authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

flatpak: Follow redirects when getting flatpakref files

parent cab5d4df
......@@ -158,7 +158,9 @@ public:
void start()
{
auto replyGet = get(QNetworkRequest(m_url));
QNetworkRequest req(m_url);
req.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
auto replyGet = get(req);
connect(replyGet, &QNetworkReply::finished, this, [this, replyGet] {
QScopedPointer<QNetworkReply, QScopedPointerDeleteLater> replyPtr(replyGet);
const QUrl originalUrl = replyGet->request().url();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment