summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_login.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_login.cpp')
-rw-r--r--protocols/Steam/src/steam_login.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp
index a063870600..f2d06b208d 100644
--- a/protocols/Steam/src/steam_login.cpp
+++ b/protocols/Steam/src/steam_login.cpp
@@ -262,6 +262,11 @@ void CSteamProto::OnAuthorizationSuccess(const JSONNode &node)
new GetSessionRequest(token.c_str(), steamId.c_str(), cookie.c_str()),
&CSteamProto::OnGotSession);
+ // We need to load homepage to get sessionid cookie
+ PushRequest(
+ new GetSessionRequest2(),
+ &CSteamProto::OnGotSession);
+
PushRequest(
new LogonRequest(token.c_str()),
&CSteamProto::OnLoggedOn);
@@ -269,7 +274,7 @@ void CSteamProto::OnAuthorizationSuccess(const JSONNode &node)
void CSteamProto::OnGotSession(const HttpResponse *response)
{
- if(!response)
+ if (!response)
return;
for (int i = 0; i < response->headersCount; i++)