summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/asm/files.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/requests/asm/files.h')
-rw-r--r--protocols/SkypeWeb/src/requests/asm/files.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/asm/files.h b/protocols/SkypeWeb/src/requests/asm/files.h
index 5a679e5e0a..f9846c23b3 100644
--- a/protocols/SkypeWeb/src/requests/asm/files.h
+++ b/protocols/SkypeWeb/src/requests/asm/files.h
@@ -11,11 +11,10 @@ public:
<< CHAR_VALUE("Authorization", CMStringA(::FORMAT, "skype_token %s", li.api.szToken))
<< CHAR_VALUE("Content-Type", "text/json");
- JSONNode node, jPermissions, jPermission(JSON_ARRAY), jReadPerm(JSON_STRING);
+ JSONNode node, jPermissions, jPermission(JSON_ARRAY);
jPermissions.set_name("permissions");
jPermission.set_name(szContact);
- jReadPerm = "read";
- jPermission << jReadPerm;
+ jPermission << JSONNode("", "read");
jPermissions << jPermission;
node << JSONNode("type", "sharing/file") << JSONNode("filename", szFileName) << jPermissions;