diff options
Diffstat (limited to 'plugins/Dropbox/src/dropbox_transfers.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index 4b54e4cd55..ebebed6fc3 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -76,14 +76,9 @@ void CDropbox::CreateFolder(const char *path) void CDropbox::CreateDownloadUrl(const char *path, char *url)
{
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
- bool useShortUrl = db_get_b(NULL, MODULE, "UseSortLinks", 1) > 0;
- HttpRequest *request;
- if (useShortUrl)
- request = new ShareOldRequest(token, path);
- else
- request = new ShareRequest(token, path);
- NLHR_PTR response(request->Send(hNetlibConnection));
- delete request;
+ //bool useShortUrl = db_get_b(NULL, MODULE, "UseSortLinks", 1) > 0;
+ ShareRequest request(token, path);
+ NLHR_PTR response(request.Send(hNetlibConnection));
HandleJsonResponseError(response);
|