Fix Sending Auth Token Over Header & Update Leaderboard

This commit is contained in:
2026-06-20 03:01:29 -04:00
parent a9e98d3c03
commit 8a6d21779d
4 changed files with 34 additions and 93 deletions
@@ -658,7 +658,8 @@ std::vector<std::string> split(const std::string& str, char delimiter) {
int Windows64Launcher::API_GetAccountInfo(const std::string token) {
std::vector<std::wstring> headers;
headers.push_back(L"Authorization: " + token);
std::wstring authtoken(token.begin(), token.end());
headers.push_back(L"Authorization:" + authtoken);
headers.push_back(L"Content-Type: text/plain");
HttpResponse response = WinsockNetLayer::DoWinHttpRequest(g_Win64AuthURL, L"/accountinfo", L"POST", "", headers);