diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-24 19:29:58 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-24 19:29:58 +0000 |
commit | 8e891173c74ceaa0964f32be247f380fd5f8bcd1 (patch) | |
tree | ae04674f66456d3c8470a754c867d319f9ccd26b /protocols/SkypeWeb/src/requests | |
parent | cdc2824d17f00ddfdb21c5bc43ede1673c70f2ec (diff) |
SkypeWeb: fix file permissions
git-svn-id: http://svn.miranda-ng.org/main/trunk@16334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r-- | protocols/SkypeWeb/src/requests/asm/files.h | 5 |
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;
|