summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/yandex_api.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-11 21:29:25 +0300
committeraunsane <aunsane@gmail.com>2018-03-11 21:30:54 +0300
commit5532fd4e1374c15c13e203a89b7cd060c7e15499 (patch)
treec96b03c78f6c9be6dd365e8c83f30090c58e6e22 /plugins/CloudFile/src/Services/yandex_api.h
parent30b4b861bc47eab24d3236879d50791871d5c90a (diff)
CloudFile should create Miranda NG folder instead of placing files into Yandex Disk root (fixed #1184)
Diffstat (limited to 'plugins/CloudFile/src/Services/yandex_api.h')
-rw-r--r--plugins/CloudFile/src/Services/yandex_api.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/CloudFile/src/Services/yandex_api.h b/plugins/CloudFile/src/Services/yandex_api.h
index 6c2d97448b..19c76d61f9 100644
--- a/plugins/CloudFile/src/Services/yandex_api.h
+++ b/plugins/CloudFile/src/Services/yandex_api.h
@@ -59,7 +59,7 @@ namespace YandexAPI
HttpRequest(REQUEST_GET, YADISK_API "/upload")
{
AddOAuthHeader(token);
- AddUrlParameter("path=%s", ptrA(mir_urlEncode(path)));
+ AddUrlParameter("path=app:%s", ptrA(mir_urlEncode(path)));
if (strategy == OnConflict::REPLACE)
AddUrlParameter("overwrite=true");
}
@@ -97,7 +97,7 @@ namespace YandexAPI
HttpRequest(REQUEST_PUT, YADISK_API)
{
AddOAuthHeader(token);
- AddUrlParameter("path=%s", ptrA(mir_urlEncode(path)));
+ AddUrlParameter("path=app:%s", ptrA(mir_urlEncode(path)));
}
};
@@ -108,7 +108,7 @@ namespace YandexAPI
HttpRequest(REQUEST_PUT, YADISK_API "/publish")
{
AddOAuthHeader(token);
- AddUrlParameter("path=%s", ptrA(mir_urlEncode(path)));
+ AddUrlParameter("path=app:%s", ptrA(mir_urlEncode(path)));
}
};
@@ -119,7 +119,7 @@ namespace YandexAPI
HttpRequest(REQUEST_GET, YADISK_API)
{
AddOAuthHeader(token);
- AddUrlParameter("path=%s", ptrA(mir_urlEncode(path)));
+ AddUrlParameter("path=app:%s", ptrA(mir_urlEncode(path)));
}
};
};