summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_queue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte/src/vk_queue.cpp')
-rw-r--r--protocols/VKontakte/src/vk_queue.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp
index cc83ceb3b4..2a6bae1e38 100644
--- a/protocols/VKontakte/src/vk_queue.cpp
+++ b/protocols/VKontakte/src/vk_queue.cpp
@@ -80,8 +80,11 @@ AsyncHttpRequest* CVkProto::Push(AsyncHttpRequest *pReq, int iTimeout)
{
debugLogA("CVkProto::Push");
pReq->timeout = iTimeout;
- if (pReq->m_bApiReq && m_VKLang)
- pReq << TCHAR_PARAM("lang", m_VKLang);
+ if (pReq->m_bApiReq)
+ {
+ if (m_VKLang != nullptr) pReq << TCHAR_PARAM("lang", m_VKLang);
+ pReq << VER_API;
+ }
{
mir_cslock lck(m_csRequestsQueue);
m_arRequestsQueue.insert(pReq);