diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-07 21:50:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-07 21:50:05 +0000 |
commit | 90a05404a6ded56141c0230f663686439f8fa146 (patch) | |
tree | 6531783fbbedc04db025526243342823ed9ccd65 /protocols/SkypeWeb/src/requests/avatars.h | |
parent | de593c8e4ae504a8d159cc272740846ef9c20ca6 (diff) |
SkypeWeb:
- added ability to getting contacts statuses
- partly reworked login flow
git-svn-id: http://svn.miranda-ng.org/main/trunk@12665 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/avatars.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/avatars.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/avatars.h b/protocols/SkypeWeb/src/requests/avatars.h index 6b71a0732d..f089ae5c1b 100644 --- a/protocols/SkypeWeb/src/requests/avatars.h +++ b/protocols/SkypeWeb/src/requests/avatars.h @@ -16,13 +16,15 @@ public: SetAvatarRequest(const char *token, const char *skypename, const char *data, size_t dataSize) :
HttpRequest(REQUEST_PUT, FORMAT, "api.skype.com/users/%s/profile/avatar", skypename)
{
- pData = (char*)mir_alloc(dataSize);
- memcpy(pData, data, dataSize);
- dataLength = dataSize;
Headers
<< CHAR_VALUE("X-Skypetoken", token)
<< CHAR_VALUE("Content-Type", "image/jpeg");
+
+ pData = (char*)mir_alloc(dataSize);
+ memcpy(pData, data, dataSize);
+ dataLength = dataSize;
}
+
~SetAvatarRequest()
{
mir_free(pData);
|