summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-03-06 22:56:11 +0300
committeraunsane <aunsane@gmail.com>2017-03-06 22:56:49 +0300
commit80777fc98142e95958138d9c3bbd9347ad6b4c68 (patch)
treef811d7cbba98db2256c136ce475dd66761ac09b0 /plugins/Dropbox/src
parentaac6c1622c64cad51f9226ddeba7abfb5addaed3 (diff)
Dropbox: fix file upload
Diffstat (limited to 'plugins/Dropbox/src')
-rw-r--r--plugins/Dropbox/src/api/upload.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/Dropbox/src/api/upload.h b/plugins/Dropbox/src/api/upload.h
index 098d53e2d2..98841e9b98 100644
--- a/plugins/Dropbox/src/api/upload.h
+++ b/plugins/Dropbox/src/api/upload.h
@@ -43,12 +43,17 @@ public:
AddBearerAuthHeader(token);
AddHeader("Content-Type", "application/octet-stream");
- JSONNode params(JSON_NODE);
- params
+
+ JSONNode cursor;
+ cursor.set_name("cursor");
+ cursor
<< JSONNode("session_id", sessionId)
<< JSONNode("offset", (unsigned long)offset);
- AddHeader("Dropbox-API-Arg", params.write().c_str());
+ JSONNode param;
+ param << cursor;
+
+ AddHeader("Dropbox-API-Arg", param.write().c_str());
SetData(data, size);
}