diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-10 17:02:14 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-10 17:02:14 +0000 |
commit | ec0297e13b1a994384254abc87d3ed9f42edcf99 (patch) | |
tree | b3c78db0e64c629148740a4c2e6b00bde5e0fc01 /protocols/SkypeWeb/src/requests/avatars.h | |
parent | 7177cd4cc38bb73338631381b802a7f7f6845f62 (diff) |
SkypeWeb: correct mimetype in avatar request
git-svn-id: http://svn.miranda-ng.org/main/trunk@15530 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, 4 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/requests/avatars.h b/protocols/SkypeWeb/src/requests/avatars.h index 23be77bee1..438fef9eac 100644 --- a/protocols/SkypeWeb/src/requests/avatars.h +++ b/protocols/SkypeWeb/src/requests/avatars.h @@ -30,12 +30,12 @@ public: class SetAvatarRequest : public HttpRequest
{
public:
- SetAvatarRequest(const char *data, size_t dataSize, LoginInfo &li) :
- HttpRequest(REQUEST_PUT, FORMAT, "api.skype.com/users/%s/profile/avatar", li.szSkypename)
+ SetAvatarRequest(const PBYTE data, size_t dataSize, const char *szMime, LoginInfo &li) :
+ HttpRequest(REQUEST_PUT, FORMAT, "api.skype.com/users/%s/profile/avatar", CMStringA(li.szSkypename).MakeLower())
{
Headers
<< CHAR_VALUE("X-Skypetoken", li.api.szToken)
- << CHAR_VALUE("Content-Type", "image/jpeg");
+ << CHAR_VALUE("Content-Type", szMime);
pData = (char*)mir_alloc(dataSize);
memcpy(pData, data, dataSize);
@@ -44,8 +44,8 @@ public: ~SetAvatarRequest()
{
- HttpRequest::~HttpRequest();
mir_free(pData);
+ HttpRequest::~HttpRequest();
}
};
|