diff --git a/Minecraft.Client/Windows64/Windows64_Launcher.cpp b/Minecraft.Client/Windows64/Windows64_Launcher.cpp index 2dc50df9..ac24dd80 100644 --- a/Minecraft.Client/Windows64/Windows64_Launcher.cpp +++ b/Minecraft.Client/Windows64/Windows64_Launcher.cpp @@ -658,9 +658,10 @@ std::vector split(const std::string& str, char delimiter) { int Windows64Launcher::API_GetAccountInfo(const std::string token) { std::vector 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; diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index 811e2ff6..b62e3324 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -146,9 +146,10 @@ std::string Windows64Minecraft::GetAuthenticationTicket() { static bool FetchSessionInfo() { std::vector headers; + headers.push_back(L"Authorization:" + Windows64Minecraft::GetAuthenticationTicket()) headers.push_back(L"Content-Type: text/plain"); - HttpResponse response = WinsockNetLayer::DoWinHttpRequest(L"auth.mclegacyedition.xyz", L"/accountinfo", L"POST", Windows64Minecraft::GetAuthenticationTicket(), headers); + HttpResponse response = WinsockNetLayer::DoWinHttpRequest(L"auth.mclegacyedition.xyz", L"/accountinfo", L"POST", "", headers); if (response.status == 0) return false;