From cb9f90e85032559d2da6e3b40a05352365e6d90f Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 2 Jun 2015 12:19:12 +0000 Subject: SkypeWeb: Manual json formatting removed. Fix avatar cache for "facebook" contacts. Other fixes. git-svn-id: http://svn.miranda-ng.org/main/trunk@13971 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/requests/messages.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb/src/requests/messages.h') diff --git a/protocols/SkypeWeb/src/requests/messages.h b/protocols/SkypeWeb/src/requests/messages.h index b55d759a22..198930fd65 100644 --- a/protocols/SkypeWeb/src/requests/messages.h +++ b/protocols/SkypeWeb/src/requests/messages.h @@ -99,8 +99,11 @@ public: << CHAR_VALUE("Content-Type", "application/json; charset=UTF-8"); //"lastReadMessageTimestamp;modificationTime;lastReadMessageId" - CMStringA data(::FORMAT, "{\"consumptionhorizon\":\"%lld000;%lld000;%lld000\"}", msgTimestamp, time(NULL), msgTimestamp); - Body << VALUE(data); + + JSONNode node(JSON_NODE); + node.push_back(JSONNode("consumptionhorizon", CMStringA(::FORMAT, "%lld000;%lld000;%lld000", msgTimestamp, time(NULL), msgTimestamp).GetBuffer())); + + Body << VALUE(node.write().c_str()); } }; -- cgit v1.2.3