summaryrefslogtreecommitdiff
path: root/protocols/Icq10/src/http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Icq10/src/http.cpp')
-rw-r--r--protocols/Icq10/src/http.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/Icq10/src/http.cpp b/protocols/Icq10/src/http.cpp
index 68424165b2..034bc47a3c 100644
--- a/protocols/Icq10/src/http.cpp
+++ b/protocols/Icq10/src/http.cpp
@@ -122,6 +122,13 @@ void CIcqProto::ExecuteRequest(AsyncHttpRequest *pReq)
delete pReq;
return;
}
+
+ replaceStr(pReq->pData, nullptr);
+
+ CMStringA szNewToken(FORMAT, "\"authToken\":\"%s\"", m_szRToken.c_str());
+ pReq->m_szParam.Replace("\"authToken\":\"\"", szNewToken);
+ pReq->dataLength = pReq->m_szParam.GetLength();
+ pReq->pData = mir_strdup(pReq->m_szParam);
}
}