summaryrefslogtreecommitdiff
path: root/plugins/Dropbox
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox')
-rw-r--r--plugins/Dropbox/src/api/operations.h2
-rw-r--r--plugins/Dropbox/src/dropbox_transfers.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Dropbox/src/api/operations.h b/plugins/Dropbox/src/api/operations.h
index b94d90b4e7..e41dbaabfe 100644
--- a/plugins/Dropbox/src/api/operations.h
+++ b/plugins/Dropbox/src/api/operations.h
@@ -4,7 +4,7 @@
class ShareRequest : public HttpRequest
{
public:
- ShareRequest(const char *token, const char *path, bool useShortUrl = true, const char *root = "auto") :
+ ShareRequest(const char *token, const char *path, bool useShortUrl, const char *root = "auto") :
HttpRequest(REQUEST_POST, FORMAT, DROPBOX_API_URL "/shares/%s/%s", root, path)
{
if (!useShortUrl)
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp
index b32ae6bbda..226d109ce3 100644
--- a/plugins/Dropbox/src/dropbox_transfers.cpp
+++ b/plugins/Dropbox/src/dropbox_transfers.cpp
@@ -67,9 +67,8 @@ void CDropbox::CreateFolder(const char *path)
void CDropbox::CreateDownloadUrl(const char *path, char *url)
{
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
- ptrA encodedPath(mir_utf8encode(path));
bool useShortUrl = db_get_b(NULL, MODULE, "UseSortLinks", 1) > 0;
- ShareRequest request(token, encodedPath, useShortUrl);
+ ShareRequest request(token, path, useShortUrl);
NLHR_PTR response(request.Send(hNetlibConnection));
HandleHttpResponseError(response);