From 46109fd96df2dd1efb7036d3ac38b6bc295b4392 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Jun 2024 13:02:29 +0300 Subject: =?UTF-8?q?fixes=20#4490=20(ICQ:=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB?= =?UTF-8?q?=D0=B5=D0=BC=D0=B0=20Load=20Server=20History)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/ICQ-WIM/src/http.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/ICQ-WIM/src/http.cpp b/protocols/ICQ-WIM/src/http.cpp index 1bb6c21ffc..f6035bbc97 100644 --- a/protocols/ICQ-WIM/src/http.cpp +++ b/protocols/ICQ-WIM/src/http.cpp @@ -201,9 +201,9 @@ bool CIcqProto::ExecuteRequest(AsyncHttpRequest *pReq) } } - if (pReq->m_conn == CONN_RAPI && reply->body.Find("\"code\": 40201") != -1) { + if (pReq->m_conn == CONN_RAPI && reply->body.Find("\"code\":") != -1) { RobustReply r(reply); - if (r.error() == 40201) { // robust token expired + if (r.error() == 40201 || r.error() == 40200) { // robust token expired m_szRToken.Empty(); // if token refresh succeeded, replace it in the query and push request back -- cgit v1.2.3