summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-03-27 12:51:33 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-03-27 12:51:33 +0000
commit85e9a7f1de5f5279e636d680d9d30505a5210355 (patch)
tree007fb7a40a8603e0818fd254674ea9a1f9f46a75 /protocols/VKontakte
parent08c534537fa6413527c2e9346ecf531ec2b5cafc (diff)
VKontakte:
fix netflags for pollserver connection code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12527 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_files.cpp6
-rw-r--r--protocols/VKontakte/src/vk_pollserver.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp
index aeb92164dc..0bdf7aefeb 100644
--- a/protocols/VKontakte/src/vk_files.cpp
+++ b/protocols/VKontakte/src/vk_files.cpp
@@ -18,7 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
CVkFileUploadParam::CVkFileUploadParam(MCONTACT _hContact, const PROTOCHAR* _desc, PROTOCHAR** _files) :
-hContact(_hContact), filetype(typeInvalid), atr(NULL), fname(NULL), iErrorCode(0)
+ hContact(_hContact),
+ filetype(typeInvalid),
+ atr(NULL),
+ fname(NULL),
+ iErrorCode(0)
{
Desc = mir_tstrdup(_desc);
FileName = mir_tstrdup(_files[0]);
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp
index 92c5d2d0d7..3de7451331 100644
--- a/protocols/VKontakte/src/vk_pollserver.cpp
+++ b/protocols/VKontakte/src/vk_pollserver.cpp
@@ -170,7 +170,7 @@ int CVkProto::PollServer()
NETLIBHTTPREQUEST req = { sizeof(req) };
req.requestType = REQUEST_GET;
req.szUrl = mir_strdup(szReqUrl.GetBuffer());
- req.flags = VK_NODUMPHEADERS | NLHRF_PERSISTENT | NLHRF_HTTP11;
+ req.flags = VK_NODUMPHEADERS | NLHRF_PERSISTENT | NLHRF_HTTP11 | NLHRF_SSL;
req.timeout = 30000;
req.nlc = m_pollingConn;