summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index 6d8df49e5c..fad6a277e7 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -205,11 +205,9 @@ int CVkProto::SendMsg(MCONTACT hContact, int flags, const char *msg)
ULONG msgId = ::InterlockedIncrement(&m_msgId);
AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/method/messages.send.json", true, &CVkProto::OnSendMessage)
<< INT_PARAM("user_id", userID)
+ << CHAR_PARAM("message", szMsg, reqPOST)
<< VER_API;
pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded");
- CMStringA szBody(FORMAT, "message=%s", ptrA(mir_urlEncode(szMsg)));
- pReq->pData = mir_strdup(szBody);
- pReq->dataLength = szBody.GetLength();
pReq->pUserInfo = new CVkSendMsgParam(hContact, msgId);
Push(pReq);