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/capabilities.h | |
parent | 75ac9efb6ed49795e21796419fcf8759c0d859dd (diff) |
SkypeWeb:
- fixes #2002 (Skype caches wrong server data);
- unused structure removed;
- version bump
Diffstat (limited to 'protocols/SkypeWeb/src/requests/capabilities.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/capabilities.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/capabilities.h b/protocols/SkypeWeb/src/requests/capabilities.h index 174b486ed7..70ca5f7311 100644 --- a/protocols/SkypeWeb/src/requests/capabilities.h +++ b/protocols/SkypeWeb/src/requests/capabilities.h @@ -21,13 +21,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. class SendCapabilitiesRequest : public HttpRequest
{
public:
- SendCapabilitiesRequest(const char *hostname, LoginInfo &li) :
- HttpRequest(REQUEST_PUT, FORMAT, "%s/v1/users/ME/endpoints/%s/presenceDocs/messagingService", li.endpoint.szServer, mir_urlEncode(li.endpoint.szId).c_str())
+ SendCapabilitiesRequest(const char *hostname, CSkypeProto *ppro) :
+ HttpRequest(REQUEST_PUT, FORMAT, "%s/v1/users/ME/endpoints/%s/presenceDocs/messagingService", ppro->m_szServer, mir_urlEncode(ppro->m_szId).c_str())
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
<< CHAR_VALUE("Content-Type", "application/json; charset=UTF-8")
- << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", li.endpoint.szToken);
+ << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", ppro->m_szToken);
JSONNode privateInfo; privateInfo.set_name("privateInfo");
privateInfo << JSONNode("epname", hostname);
|