From c89e8a054ac888b27065916ffde96af73404228c Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 4 Apr 2015 20:10:50 +0000 Subject: SkypeWeb: - history sync (patch from MikalaiR) - refactored message sending git-svn-id: http://svn.miranda-ng.org/main/trunk@12599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src/skype_proto.cpp') diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 3937a4e6c7..eb420ad998 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -141,7 +141,15 @@ int CSkypeProto::SetStatus(int iNewStatus) isTerminated = true; //if (m_pollingConnection) // CallService(MS_NETLIB_SHUTDOWN, (WPARAM)m_pollingConnection, 0); - PushRequest(new LogoutRequest()); + LogoutRequest *logoutRequest = new LogoutRequest(); + if (!cookies.empty()) + { + CMStringA allCookies; + for (std::map::iterator cookie = cookies.begin(); cookie != cookies.end(); ++cookie) + allCookies.AppendFormat("%s=%s; ", cookie->first.c_str(), cookie->second.c_str()); + logoutRequest->Headers << CHAR_VALUE("Set-Cookie", allCookies); + } + PushRequest(logoutRequest); requestQueue->Stop(); if (!Miranda_Terminated()) -- cgit v1.2.3