mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-03 23:11:23 +02:00
Add version to UserAgent on Win launcher
This commit is contained in:
parent
33070b4579
commit
cc5565d30f
2 changed files with 4 additions and 3 deletions
|
@ -405,7 +405,7 @@ LauncherUtils::ResponseError LauncherManager::readOrganizationJSON(const CString
|
||||||
CString contentTypeJson = L"content-type:application/json";
|
CString contentTypeJson = L"content-type:application/json";
|
||||||
CString response;
|
CString response;
|
||||||
CString url = _T("/organizations/") + hash + _T(".json");
|
CString url = _T("/organizations/") + hash + _T(".json");
|
||||||
LauncherUtils::ResponseError error = LauncherUtils::makeHTTPCall(L"HQ Launcher",
|
LauncherUtils::ResponseError error = LauncherUtils::makeHTTPCall(getHttpUserAgent(),
|
||||||
L"orgs.highfidelity.com", url,
|
L"orgs.highfidelity.com", url,
|
||||||
contentTypeJson, CStringA(),
|
contentTypeJson, CStringA(),
|
||||||
response, false);
|
response, false);
|
||||||
|
@ -464,7 +464,7 @@ void LauncherManager::getMostRecentBuilds(CString& launcherUrlOut, CString& laun
|
||||||
}
|
}
|
||||||
onMostRecentBuildsReceived(response, error);
|
onMostRecentBuildsReceived(response, error);
|
||||||
};
|
};
|
||||||
LauncherUtils::httpCallOnThread(L"HQ Launcher",
|
LauncherUtils::httpCallOnThread(getHttpUserAgent(),
|
||||||
L"thunder.highfidelity.com",
|
L"thunder.highfidelity.com",
|
||||||
L"/builds/api/tags/latest?format=json",
|
L"/builds/api/tags/latest?format=json",
|
||||||
contentTypeJson, CStringA(), false, httpCallback);
|
contentTypeJson, CStringA(), false, httpCallback);
|
||||||
|
@ -530,7 +530,7 @@ LauncherUtils::ResponseError LauncherManager::getAccessTokenForCredentials(const
|
||||||
|
|
||||||
CString contentTypeText = L"content-type:application/x-www-form-urlencoded";
|
CString contentTypeText = L"content-type:application/x-www-form-urlencoded";
|
||||||
CString response;
|
CString response;
|
||||||
LauncherUtils::ResponseError error = LauncherUtils::makeHTTPCall(L"HQ Launcher",
|
LauncherUtils::ResponseError error = LauncherUtils::makeHTTPCall(getHttpUserAgent(),
|
||||||
L"metaverse.highfidelity.com",
|
L"metaverse.highfidelity.com",
|
||||||
L"/oauth/token",
|
L"/oauth/token",
|
||||||
contentTypeText, post,
|
contentTypeText, post,
|
||||||
|
|
|
@ -134,6 +134,7 @@ public:
|
||||||
void updateProgress(ProcessType processType, float progress);
|
void updateProgress(ProcessType processType, float progress);
|
||||||
void onCancel();
|
void onCancel();
|
||||||
const CString& getLauncherVersion() const { return _launcherVersion; }
|
const CString& getLauncherVersion() const { return _launcherVersion; }
|
||||||
|
CString getHttpUserAgent() const { return L"HQLauncher/" + _launcherVersion; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ProcessType _currentProcess { ProcessType::DownloadApplication };
|
ProcessType _currentProcess { ProcessType::DownloadApplication };
|
||||||
|
|
Loading…
Reference in a new issue