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/screenshots | |
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/screenshots')
-rw-r--r-- | api/logic/screenshots/ImgurAlbumCreation.cpp | 4 | ||||
-rw-r--r-- | api/logic/screenshots/ImgurUpload.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/api/logic/screenshots/ImgurAlbumCreation.cpp b/api/logic/screenshots/ImgurAlbumCreation.cpp index ff9ec6fd..1f195f00 100644 --- a/api/logic/screenshots/ImgurAlbumCreation.cpp +++ b/api/logic/screenshots/ImgurAlbumCreation.cpp @@ -20,9 +20,9 @@ void ImgurAlbumCreation::start() { m_status = Job_InProgress; QNetworkRequest request(m_url); - request.setHeader(QNetworkRequest::UserAgentHeader, "MultiMC/5.0 (Uncached)"); + request.setHeader(QNetworkRequest::UserAgentHeader, BuildConfig.USER_AGENT_UNCACHED); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded"); - request.setRawHeader("Authorization", "Client-ID 5b97b0713fba4a3"); + request.setRawHeader("Authorization", QString("Client-ID %1").arg(BuildConfig.IMGUR_CLIENT_ID).toStdString().c_str()); request.setRawHeader("Accept", "application/json"); QStringList hashes; diff --git a/api/logic/screenshots/ImgurUpload.cpp b/api/logic/screenshots/ImgurUpload.cpp index 1585b061..7e95d5ca 100644 --- a/api/logic/screenshots/ImgurUpload.cpp +++ b/api/logic/screenshots/ImgurUpload.cpp @@ -23,8 +23,8 @@ void ImgurUpload::start() finished = false; m_status = Job_InProgress; QNetworkRequest request(m_url); - request.setHeader(QNetworkRequest::UserAgentHeader, "MultiMC/5.0 (Uncached)"); - request.setRawHeader("Authorization", "Client-ID 5b97b0713fba4a3"); + request.setHeader(QNetworkRequest::UserAgentHeader, BuildConfig.USER_AGENT_UNCACHED); + request.setRawHeader("Authorization", QString("Client-ID %1").arg(BuildConfig.IMGUR_CLIENT_ID).toStdString().c_str()); request.setRawHeader("Accept", "application/json"); QFile f(m_shot->m_file.absoluteFilePath()); |