NOISSUE Use constants for user agents

Here lies yet another early-stage move to debrand the MultiMC codebase,
as well as reducing the burden of updating strings across the codebase
for a future MultiMC6.
This commit is contained in:
Jamie Mansfield
2021-07-01 19:24:29 +01:00
parent df1d3dbae2
commit 20c393321c
5 changed files with 11 additions and 4 deletions

View File

@ -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);