From 128341ef85a0f9daef7dce3653adf1011f3e6e06 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 Mar 2019 19:29:26 +0300 Subject: ICQ-WIM: code cleaning & optimization --- protocols/ICQ-WIM/src/http.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'protocols/ICQ-WIM/src/http.cpp') diff --git a/protocols/ICQ-WIM/src/http.cpp b/protocols/ICQ-WIM/src/http.cpp index e31cc46fe8..47929fbc69 100644 --- a/protocols/ICQ-WIM/src/http.cpp +++ b/protocols/ICQ-WIM/src/http.cpp @@ -234,6 +234,15 @@ void CIcqProto::Push(MHttpRequest *p) ///////////////////////////////////////////////////////////////////////////////////////// +AsyncHttpRequest* operator<<(AsyncHttpRequest *pReq, const AIMSID ¶m) +{ + pReq << CHAR_PARAM("f", "json") << CHAR_PARAM("aimsid", param.m_ppro->m_aimsid) << CHAR_PARAM("r", pReq->m_reqId); + pReq->flags |= NLHRF_NODUMPSEND; + return pReq; +} + +///////////////////////////////////////////////////////////////////////////////////////// + JsonReply::JsonReply(NETLIBHTTPREQUEST *pReply) { if (pReply == nullptr) { -- cgit v1.2.3