summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/requests/messages.h')
-rw-r--r--protocols/SkypeWeb/src/requests/messages.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/protocols/SkypeWeb/src/requests/messages.h b/protocols/SkypeWeb/src/requests/messages.h
index 130dd0c938..d58fc131aa 100644
--- a/protocols/SkypeWeb/src/requests/messages.h
+++ b/protocols/SkypeWeb/src/requests/messages.h
@@ -9,13 +9,8 @@ public:
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
- << CHAR_VALUE("Expires", "0")
<< FORMAT_VALUE("RegistrationToken", "registrationToken=%s", regToken)
- << CHAR_VALUE("Content-Type", "application/json; charset = UTF-8")
- << CHAR_VALUE("BehaviorOverride", "redirectAs404")
- << CHAR_VALUE("Referer", "https://web.skype.com/main")
- << CHAR_VALUE("Origin", "https://web.skype.com")
- << CHAR_VALUE("Connection", "keep-alive");
+ << CHAR_VALUE("Content-Type", "application/json; charset = UTF-8");
CMStringA data;
data.AppendFormat("{\"clientmessageid\":\"%lld\",\"content\":\"%s\",\"messagetype\":\"RichText\",\"contenttype\":\"text\"}", timestamp, message);
@@ -32,13 +27,8 @@ public:
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
- << CHAR_VALUE("Expires", "0")
<< FORMAT_VALUE("RegistrationToken", "registrationToken=%s", regToken)
- << CHAR_VALUE("Content-Type", "application/json; charset = UTF-8")
- << CHAR_VALUE("BehaviorOverride", "redirectAs404")
- << CHAR_VALUE("Referer", "https://web.skype.com/main")
- << CHAR_VALUE("Origin", "https://web.skype.com")
- << CHAR_VALUE("Connection", "keep-alive");
+ << CHAR_VALUE("Content-Type", "application/json; charset = UTF-8");
CMStringA state;
if (bstate) state = "Control/Typing";
else state = "Control/ClearTyping";
@@ -57,13 +47,8 @@ public:
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
- << CHAR_VALUE("Expires", "0")
<< FORMAT_VALUE("RegistrationToken", "registrationToken=%s", regToken)
- << CHAR_VALUE("Content-Type", "application/json; charset = UTF-8")
- << CHAR_VALUE("BehaviorOverride", "redirectAs404")
- << CHAR_VALUE("Referer", "https://web.skype.com/main")
- << CHAR_VALUE("Origin", "https://web.skype.com")
- << CHAR_VALUE("Connection", "keep-alive");
+ << CHAR_VALUE("Content-Type", "application/json; charset = UTF-8");
}
};