diff options
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);
|