aboutsummaryrefslogtreecommitdiff
path: root/launcher/net/Upload.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-06-11 10:53:58 +0200
committerGitHub <noreply@github.com>2022-06-11 10:53:58 +0200
commit2257c875f5447b85ac885fbf2684608af0262c25 (patch)
tree7a727afca9775e638b39cc2671eabc4f65ea7ed6 /launcher/net/Upload.cpp
parent309013efb3e148310ba4802ee946a55c01d1d56e (diff)
parent757fa1410cb6d065b2c26092b47dbe61f8c6d480 (diff)
downloadPrismLauncher-2257c875f5447b85ac885fbf2684608af0262c25.tar.gz
PrismLauncher-2257c875f5447b85ac885fbf2684608af0262c25.tar.bz2
PrismLauncher-2257c875f5447b85ac885fbf2684608af0262c25.zip
Merge pull request #708 from ryanccn/custom-user-agent
Diffstat (limited to 'launcher/net/Upload.cpp')
-rw-r--r--launcher/net/Upload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/net/Upload.cpp b/launcher/net/Upload.cpp
index bbd27390..c9942a8d 100644
--- a/launcher/net/Upload.cpp
+++ b/launcher/net/Upload.cpp
@@ -173,7 +173,7 @@ namespace Net {
return;
}
- request.setHeader(QNetworkRequest::UserAgentHeader, BuildConfig.USER_AGENT);
+ request.setHeader(QNetworkRequest::UserAgentHeader, APPLICATION->getUserAgent().toUtf8());
if (request.url().host().contains("api.curseforge.com")) {
request.setRawHeader("x-api-key", APPLICATION->getCurseKey().toUtf8());
}