From 85e9a7f1de5f5279e636d680d9d30505a5210355 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Fri, 27 Mar 2015 12:51:33 +0000 Subject: VKontakte: fix netflags for pollserver connection code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12527 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_files.cpp | 6 +++++- protocols/VKontakte/src/vk_pollserver.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte') 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 . #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; -- cgit v1.2.3