Fix Sending Auth Token Over Header & Update Leaderboard
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user