summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-09-08 13:59:13 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-09-08 13:59:13 +0000
commit4f5b0e5458a2f305a7f4f3908ae2a40e851ceb49 (patch)
treec9a73a9332ecac3465ef157b00a485efc151712e /protocols
parent57fb5a039ebb74fd276d7bd0224406f29f9d18b9 (diff)
VKontakte: fix upload docs
git-svn-id: http://svn.miranda-ng.org/main/trunk@15305 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_files.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp
index 2423899ddb..1a57917749 100644
--- a/protocols/VKontakte/src/vk_files.cpp
+++ b/protocols/VKontakte/src/vk_files.cpp
@@ -251,7 +251,7 @@ void CVkProto::OnReciveUpload(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
return;
}
- if (!jnRoot["server"] || !jnRoot["hash"]) {
+ if ((!jnRoot["server"] || !jnRoot["hash"]) && !jnRoot["file"]) {
SendFileFiled(fup, VKERR_INVALID_PARAMETERS);
return;
}