Fix #4072 by changing outdated HTTP to HTTPS calls within the codebase (#4073)

This commit is contained in:
Zach H 2020-08-23 17:24:26 -04:00 committed by GitHub
parent b0c7b9078d
commit 3536fa8a75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -34,7 +34,7 @@ void TappedOutInterface::queryFinished(QNetworkReply *reply)
*/
QString deckUrl = reply->rawHeader("Location");
qDebug() << "Tappedout: good reply, http status" << httpStatus << "location" << deckUrl;
QDesktopServices::openUrl("http://tappedout.net" + deckUrl);
QDesktopServices::openUrl("https://tappedout.net" + deckUrl);
} else {
/*
* Otherwise, the deck has not been parsed correctly. Error messages can be extracted
@ -86,7 +86,7 @@ void TappedOutInterface::analyzeDeck(DeckList *deck)
QByteArray data;
getAnalyzeRequestData(deck, &data);
QNetworkRequest request(QUrl("http://tappedout.net/mtg-decks/paste/"));
QNetworkRequest request(QUrl("https://tappedout.net/mtg-decks/paste/"));
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
manager->post(request, data);