diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-04 13:38:02 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-04 13:38:02 +0300 |
commit | 94667140aeb3886d22e4c1301423fe99aaf3fba4 (patch) | |
tree | 88bc46dfa6a3dba117905f7994b5e5f6ae09fa2a /protocols/ICQ-WIM/src/mra.cpp | |
parent | e63471b9885d040b9e6db3255432f6cea36144e9 (diff) |
Netlib: pascal code is completely isolated from C++ core using helpers
Diffstat (limited to 'protocols/ICQ-WIM/src/mra.cpp')
-rw-r--r-- | protocols/ICQ-WIM/src/mra.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/protocols/ICQ-WIM/src/mra.cpp b/protocols/ICQ-WIM/src/mra.cpp index cfe427a136..b65ae238dc 100644 --- a/protocols/ICQ-WIM/src/mra.cpp +++ b/protocols/ICQ-WIM/src/mra.cpp @@ -19,18 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. void CIcqProto::SendMrimLogin(NETLIBHTTPREQUEST *pReply)
{
- if (pReply) {
- for (int i=0; i < pReply->headersCount; i++) {
- if (!mir_strcmpi(pReply->headers[i].szName, "Set-Cookie")) {
- char *p = strchr(pReply->headers[i].szValue, ';');
- if (p) *p = 0;
- if (!m_szMraCookie.IsEmpty())
- m_szMraCookie.Append("; ");
-
- m_szMraCookie.Append(pReply->headers[i].szValue);
- }
- }
- }
+ m_szMraCookie = pReply->GetCookies();
auto *pReq = new AsyncHttpRequest(CONN_NONE, REQUEST_POST, "https://icqapilogin.mail.ru/auth/mrimLogin", &CIcqProto::OnCheckMrimLogin);
pReq->AddHeader("User-Agent", NETLIB_USER_AGENT);
|