Merge pull request #803 from xiaoyifang/fix/download

fix: new release check ,download url is incorrect
This commit is contained in:
xiaoyifang 2023-06-03 18:01:56 +08:00 committed by GitHub
commit aa02301cb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2965,7 +2965,7 @@ void MainWindow::latestReleaseReplyReady()
} }
downloadUrl = matchParts.captured(1); downloadUrl = matchParts.captured(1);
if(downloadUrl.startsWith("/")){ if(downloadUrl.startsWith("/")){
downloadUrl = latestReleaseReply->request().url().host() + downloadUrl; downloadUrl = latestReleaseReply->request().url().url( QUrl::RemovePath ) + downloadUrl;
} }
success = true; success = true;
} }