Skip to content

Commit

Permalink
fix: follow redirects and use new domain
Browse files Browse the repository at this point in the history
Closes #219
  • Loading branch information
Nerixyz committed May 13, 2023
1 parent e870204 commit 90ee0af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/singletons/Updates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ void Updates::installUpdates()

NetworkRequest(this->updatePortable_)
.timeout(600000)
.followRedirects(true)
.onError([this](NetworkResult) {
this->setStatus_(DownloadFailed);

Expand Down Expand Up @@ -173,6 +174,7 @@ void Updates::installUpdates()

NetworkRequest(this->updateExe_)
.timeout(600000)
.followRedirects(true)
.onError([this](NetworkResult) {
this->setStatus_(DownloadFailed);

Expand Down Expand Up @@ -272,12 +274,12 @@ void Updates::checkForUpdates()
return;
}

QString url = "https://api.7tv.app/v2/chatterino/version/" CHATTERINO_OS
"/" +
QString url = "https://7tv.io/v2/chatterino/version/" CHATTERINO_OS "/" +
currentBranch();

NetworkRequest(url)
.timeout(60000)
.followRedirects(true)
.onSuccess([this](auto result) -> Outcome {
const auto object = result.parseJson();
/// Version available on every platform
Expand Down

0 comments on commit 90ee0af

Please sign in to comment.