diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-03-06 19:03:12 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-03-06 19:03:12 +0000 |
commit | 5fb7d6a8304db2236f46a6c7b33b0540fee11fd6 (patch) | |
tree | 89c9fde528f3437a86bb9fb83171f64bbc75efed /plugins/Dropbox/src/dropbox_transfers.cpp | |
parent | aeff43204a4f2b583f9f83b383be00cac89cbd4e (diff) |
Dropbox:
- added first approach of options page
- fixed tabsrmm button destruction
git-svn-id: http://svn.miranda-ng.org/main/trunk@8430 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_transfers.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index 6eb03d8c86..2abdaa588c 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -118,6 +118,11 @@ int CDropbox::SendFileChunkedLast(const char *fileName, const char *uploadId, MC request = new HttpRequest(hNetlibUser, REQUEST_POST, url);
request->AddBearerAuthHeader(db_get_sa(NULL, MODULE, "TokenSecret"));
+ if (!db_get_b(NULL, MODULE, "UseSortLinks", 1))
+ {
+ request->pData = mir_strdup("short_url=false");
+ request->dataLength = strlen(request->pData);
+ }
response = request->Send();
@@ -212,6 +217,11 @@ int CDropbox::CreateFolder(const char *folderName, MCONTACT hContact) request = new HttpRequest(hNetlibUser, REQUEST_POST, url);
request->AddBearerAuthHeader(db_get_sa(NULL, MODULE, "TokenSecret"));
+ if (!db_get_b(NULL, MODULE, "UseSortLinks", 1))
+ {
+ request->pData = mir_strdup("short_url=false");
+ request->dataLength = strlen(request->pData);
+ }
mir_free(response);
|