summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/messages.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-05 13:53:50 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-05 13:53:50 +0000
commit7c2b6ea1c3af9aab4c265ddc7ab6a6c2a07be5cc (patch)
tree8fe2c16fcd96e44d54326fdc8f4b4ac2ea5c42da /protocols/SkypeWeb/src/requests/messages.h
parent5413f05df37646178533a24f80e0e0238982af36 (diff)
SkypeWeb: cleanup headers (patch from MikalaiR)
git-svn-id: http://svn.miranda-ng.org/main/trunk@12611 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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");
}
};