Send Token Over Header

This commit is contained in:
2026-06-19 20:23:13 -04:00
parent 7f72bf5549
commit a9e98d3c03
2 changed files with 4 additions and 2 deletions
@@ -658,9 +658,10 @@ 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);
headers.push_back(L"Content-Type: text/plain");
HttpResponse response = WinsockNetLayer::DoWinHttpRequest(g_Win64AuthURL, L"/accountinfo", L"POST", token, headers);
HttpResponse response = WinsockNetLayer::DoWinHttpRequest(g_Win64AuthURL, L"/accountinfo", L"POST", "", headers);
if (response.status == 0) return -1;