summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_commands.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-11 20:12:46 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-11 20:12:46 +0000
commit488f93815d3c247376f038377e7bc3731b074231 (patch)
tree284f30d88e1b183792592c4066d9a7abe0bf6d81 /plugins/Dropbox/src/dropbox_commands.cpp
parentdb8cf4c1b0a624fd469c462e41a1e499ae808b70 (diff)
Dropbox: work commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@13556 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_commands.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_commands.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Dropbox/src/dropbox_commands.cpp b/plugins/Dropbox/src/dropbox_commands.cpp
index 2e8963caa1..5b992fd45e 100644
--- a/plugins/Dropbox/src/dropbox_commands.cpp
+++ b/plugins/Dropbox/src/dropbox_commands.cpp
@@ -23,7 +23,7 @@ void CDropbox::CommandContent(void *arg)
if (name)
url.AppendFormat("/%s", ptrA(mir_utf8encode(name)));
- HttpRequest *request = new HttpRequest(param->instance->hNetlibUser, REQUEST_GET, url);
+ HttpRequest *request = new HttpRequest(param->instance->hNetlibConnection, REQUEST_GET, url);
request->AddBearerAuthHeader(db_get_sa(NULL, MODULE, "TokenSecret"));
mir_ptr<NETLIBHTTPREQUEST> response(request->Send());
@@ -74,7 +74,7 @@ void CDropbox::CommandShare(void *arg)
if (name)
url.AppendFormat("/%s", ptrA(mir_utf8encode(name)));
- HttpRequest *request = new HttpRequest(param->instance->hNetlibUser, REQUEST_POST, url);
+ HttpRequest *request = new HttpRequest(param->instance->hNetlibConnection, REQUEST_POST, url);
request->AddBearerAuthHeader(db_get_sa(NULL, MODULE, "TokenSecret"));
mir_ptr<NETLIBHTTPREQUEST> response(request->Send());
@@ -114,7 +114,7 @@ void CDropbox::CommandDelete(void *arg)
if (name) {
CMStringA pparam = CMStringA("root=" DROPBOX_API_ROOT "&path=") + ptrA(mir_utf8encode(name));
- HttpRequest *request = new HttpRequest(param->instance->hNetlibUser, REQUEST_POST, DROPBOX_API_URL "/fileops/delete");
+ HttpRequest *request = new HttpRequest(param->instance->hNetlibConnection, REQUEST_POST, DROPBOX_API_URL "/fileops/delete");
request->AddBearerAuthHeader(db_get_sa(NULL, MODULE, "TokenSecret"));
request->AddHeader("Content-Type", "application/x-www-form-urlencoded");
request->pData = mir_strdup(pparam);