summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-26 18:44:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-26 18:44:49 +0300
commitc89b7af83f86699b0f7b2564d8c301c9f60aaf4e (patch)
tree0d46f5c711fddfb4ad4e864841731c8aae21393e /protocols/SkypeWeb/src/requests
parent7b071d9e58a8abbfeac5914153d19b0dffc017c9 (diff)
- fixes #2150 (SkypeWeb hangs on sync);
- fixes problems with Skype disconnections; - version bump
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r--protocols/SkypeWeb/src/requests/poll.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/poll.h b/protocols/SkypeWeb/src/requests/poll.h
index 026f7f8c76..62455a1931 100644
--- a/protocols/SkypeWeb/src/requests/poll.h
+++ b/protocols/SkypeWeb/src/requests/poll.h
@@ -25,10 +25,13 @@ public:
HttpRequest(REQUEST_POST, FORMAT, "%s/v1/users/ME/endpoints/SELF/subscriptions/0/poll", ppro->m_szServer)
{
timeout = 60000;
- flags |= NLHRF_PERSISTENT;
Headers
- << CHAR_VALUE("Accept", "application/json, text/javascript")
- << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", ppro->m_szToken.get());
+ << CHAR_VALUE("Referer", "https://web.skype.com/main")
+ << CHAR_VALUE("Content-Type", "application/x-www-form-urlencoded")
+ << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", ppro->m_szToken.get())
+ << CHAR_VALUE("ClientInfo", "os=Windows; osVer=8.1; proc=Win32; lcid=en-us; deviceType=1; country=n/a; clientName=swx-skype.com; clientVer=908/1.85.0.29")
+ << CHAR_VALUE("Accept", "application/json; ver=1.0")
+ << CHAR_VALUE("Accept-Language", "en, C");
}
};
#endif //_SKYPE_POLL_H_ \ No newline at end of file