diff options
-rw-r--r-- | plugins/Dropbox/src/api/upload.h | 11 |
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);
}
|