diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-12 19:20:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-12 19:20:45 +0300 |
commit | c311534fbf724850cbd8555a9e57f67b3096d7a0 (patch) | |
tree | 73105ae67eebae560f162a90a194016e4d06565c /protocols/SkypeWeb/src/requests/asm/files.h | |
parent | 75ac9efb6ed49795e21796419fcf8759c0d859dd (diff) |
SkypeWeb:
- fixes #2002 (Skype caches wrong server data);
- unused structure removed;
- version bump
Diffstat (limited to 'protocols/SkypeWeb/src/requests/asm/files.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/asm/files.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/requests/asm/files.h b/protocols/SkypeWeb/src/requests/asm/files.h index 9f2fff89c9..89d42274d3 100644 --- a/protocols/SkypeWeb/src/requests/asm/files.h +++ b/protocols/SkypeWeb/src/requests/asm/files.h @@ -3,12 +3,12 @@ class ASMObjectCreateRequest : public HttpRequest
{
public:
- ASMObjectCreateRequest(LoginInfo &li, const char *szContact, const char *szFileName) :
+ ASMObjectCreateRequest(CSkypeProto *ppro, const char *szContact, const char *szFileName) :
HttpRequest(REQUEST_POST, "api.asm.skype.com/v1/objects")
{
flags &= (~NLHRF_DUMPASTEXT);
Headers
- << FORMAT_VALUE("Authorization", "skype_token %s", li.api.szToken)
+ << FORMAT_VALUE("Authorization", "skype_token %s", ppro->m_szApiToken)
<< CHAR_VALUE("Content-Type", "text/json");
JSONNode node, jPermissions, jPermission(JSON_ARRAY);
@@ -26,11 +26,11 @@ public: class ASMObjectUploadRequest : public HttpRequest
{
public:
- ASMObjectUploadRequest(LoginInfo &li, const char *szObject, const PBYTE data, const size_t size) :
+ ASMObjectUploadRequest(CSkypeProto *ppro, const char *szObject, const PBYTE data, const size_t size) :
HttpRequest(REQUEST_PUT, FORMAT, "api.asm.skype.com/v1/objects/%s/content/original", szObject)
{
Headers
- << FORMAT_VALUE("Authorization", "skype_token %s", li.api.szToken)
+ << FORMAT_VALUE("Authorization", "skype_token %s", ppro->m_szApiToken)
<< CHAR_VALUE("Content-Type", "application/octet-stream");
pData = (char*)mir_alloc(size);
|