Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve windows update downloader #9153

Merged
merged 3 commits into from
Mar 17, 2022
Merged

Improve windows update downloader #9153

merged 3 commits into from
Mar 17, 2022

Conversation

TheOneRing
Copy link
Member

@TheOneRing TheOneRing commented Oct 15, 2021

I guess I should implement a fake server and not rely on our mirror....
Fixes: #7390

@sonarcloud
Copy link

sonarcloud bot commented Oct 15, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@TheOneRing TheOneRing marked this pull request as ready for review October 27, 2021 12:29
@TheOneRing TheOneRing requested a review from a team February 2, 2022 12:01
@TheOneRing TheOneRing added this to the 2.11 milestone Feb 2, 2022
@TheOneRing TheOneRing changed the base branch from 2.10 to master February 3, 2022 10:09
@sonarcloud
Copy link

sonarcloud bot commented Feb 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@TheOneRing TheOneRing requested review from fmoc and dschmidt March 9, 2022 14:28
setDownloadState(DownloadComplete);
} else {
QNetworkReply *reply = qnam()->get(QNetworkRequest(QUrl(url)));
auto request = QNetworkRequest(QUrl(url));
request.setAttribute(QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::NoLessSafeRedirectPolicy);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be the default everywhere nowadays?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default are manual redirects, with the flag I enable redirects and don't limit them.

@TheOneRing TheOneRing merged commit 3bf6986 into master Mar 17, 2022
@delete-merged-branch delete-merged-branch bot deleted the work/windows_download branch March 17, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installer downloaded even though it doesn't exist
2 participants