diff options
author | Petr Mrázek <peterix@users.noreply.github.com> | 2021-07-22 17:40:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 17:40:36 +0200 |
commit | 4fc37f5a35e58ff4b121f788e0477dff1f30a97b (patch) | |
tree | 267d043f0fb028a87c7cd60e008f8d2f11a6af8d /api/logic/net/Download.cpp | |
parent | 295bcbe3a71ab09e9eed283633e51beb525f483e (diff) | |
parent | 74f5255eef8b14455ca741c5004a97cd00fed667 (diff) | |
download | PrismLauncher-4fc37f5a35e58ff4b121f788e0477dff1f30a97b.tar.gz PrismLauncher-4fc37f5a35e58ff4b121f788e0477dff1f30a97b.tar.bz2 PrismLauncher-4fc37f5a35e58ff4b121f788e0477dff1f30a97b.zip |
Merge pull request #3931 from jamierocks/july-wrk2
NOISSUE Debranding, fix annoying warning, updated Patreon logo
Diffstat (limited to 'api/logic/net/Download.cpp')
-rw-r--r-- | api/logic/net/Download.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logic/net/Download.cpp b/api/logic/net/Download.cpp index 340f8657..3f183b7d 100644 --- a/api/logic/net/Download.cpp +++ b/api/logic/net/Download.cpp @@ -15,6 +15,7 @@ #include "Download.h" +#include "BuildConfig.h" #include <QFileInfo> #include <QDateTime> #include <QDebug> @@ -94,7 +95,7 @@ void Download::start() return; } - request.setHeader(QNetworkRequest::UserAgentHeader, "MultiMC/5.0"); + request.setHeader(QNetworkRequest::UserAgentHeader, BuildConfig.USER_AGENT); QNetworkReply *rep = ENV.qnam().get(request); |