diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-29 21:29:07 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-07-08 16:25:03 +0200 |
commit | 8a1a583afef0a719a3b793ce32bb93cc2d6180bb (patch) | |
tree | 52c72cbd17a60b6c2ec1fa57676613eec43a6f78 /launcher/net | |
parent | f1902a44716201d9d6431cab762663cd749b58eb (diff) | |
download | PrismLauncher-8a1a583afef0a719a3b793ce32bb93cc2d6180bb.tar.gz PrismLauncher-8a1a583afef0a719a3b793ce32bb93cc2d6180bb.tar.bz2 PrismLauncher-8a1a583afef0a719a3b793ce32bb93cc2d6180bb.zip |
refactor: rename references to CurseForge to Flame
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/net')
-rw-r--r-- | launcher/net/Download.cpp | 2 | ||||
-rw-r--r-- | launcher/net/Upload.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/launcher/net/Download.cpp b/launcher/net/Download.cpp index d93eb088..0557f2e3 100644 --- a/launcher/net/Download.cpp +++ b/launcher/net/Download.cpp @@ -118,7 +118,7 @@ void Download::executeTask() request.setHeader(QNetworkRequest::UserAgentHeader, APPLICATION->getUserAgent().toUtf8()); if (request.url().host().contains("api.curseforge.com")) { - request.setRawHeader("x-api-key", APPLICATION->getCurseKey().toUtf8()); + request.setRawHeader("x-api-key", APPLICATION->getFlameAPIKey().toUtf8()); }; QNetworkReply* rep = m_network->get(request); diff --git a/launcher/net/Upload.cpp b/launcher/net/Upload.cpp index c9942a8d..2173bd08 100644 --- a/launcher/net/Upload.cpp +++ b/launcher/net/Upload.cpp @@ -175,7 +175,7 @@ namespace Net { request.setHeader(QNetworkRequest::UserAgentHeader, APPLICATION->getUserAgent().toUtf8()); if (request.url().host().contains("api.curseforge.com")) { - request.setRawHeader("x-api-key", APPLICATION->getCurseKey().toUtf8()); + request.setRawHeader("x-api-key", APPLICATION->getFlameAPIKey().toUtf8()); } //TODO other types of post requests ? request.setHeader(QNetworkRequest::ContentTypeHeader, "application/json"); |