summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_queue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-07 20:51:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-07 20:51:47 +0000
commit76cbb4b4419e389f8d5588e014247801758e98fc (patch)
tree3d34ab83ccfa3fccf5864335d461a26168240b53 /protocols/VKontakte/src/vk_queue.cpp
parentfd19e1785ce7a1f9dcf4628e170d7a91a97cb1b0 (diff)
idea with the base domain in VK considered useless
git-svn-id: http://svn.miranda-ng.org/main/trunk@7537 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_queue.cpp')
-rw-r--r--protocols/VKontakte/src/vk_queue.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp
index 0b4c48140a..46a344c753 100644
--- a/protocols/VKontakte/src/vk_queue.cpp
+++ b/protocols/VKontakte/src/vk_queue.cpp
@@ -64,7 +64,7 @@ AsyncHttpRequest* CVkProto::PushAsyncHttpRequest(int iRequestType, LPCSTR szUrl,
CMStringA url;
if (*szUrl == '/') { // relative url leads to a site
- url = ((bSecure) ? "https://api." : "http://api.") + CMStringA(m_baseDomain);
+ url = ((bSecure) ? "https://" : "http://") + CMStringA("api.vk.com");
url += szUrl;
pReq->bIsMainConn = true;
}
@@ -105,12 +105,12 @@ void CVkProto::WorkerThread(void*)
// try to receive a response from server
RetrieveMyInfo();
else {
- CMStringA redirectUrl; redirectUrl.Format("http://api.%s/blank.html", m_baseDomain);
// Initialize new OAuth session
+ extern char szBlankUrl[];
HttpParam params[] = {
{ "client_id", VK_APP_ID },
{ "scope", "friends,photos,audio,video,wall,messages,offline" },
- { "redirect_uri", redirectUrl },
+ { "redirect_uri", szBlankUrl },
{ "display", "wap" },
{ "response_type", "token" }
};