summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/api
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-10-24 18:54:18 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-10-24 18:54:18 +0000
commitaa6b2f434c204d6da1906f381c418bd8f0bca163 (patch)
tree4771c946f6db36ddb80842362fb1f7ec37deda27 /protocols/Steam/src/api
parent910486f051234fb8e24426152af98ab90319aa16 (diff)
Steam:
- remove custom db event adding - add charset utf-8 to some of requests git-svn-id: http://svn.miranda-ng.org/main/trunk@15607 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/api')
-rw-r--r--protocols/Steam/src/api/authorization.h2
-rw-r--r--protocols/Steam/src/api/friend_list.h6
-rw-r--r--protocols/Steam/src/api/login.h4
-rw-r--r--protocols/Steam/src/api/message.h2
-rw-r--r--protocols/Steam/src/api/pending.h6
-rw-r--r--protocols/Steam/src/api/poll.h2
-rw-r--r--protocols/Steam/src/api/rsa_key.h2
-rw-r--r--protocols/Steam/src/api/session.h2
8 files changed, 13 insertions, 13 deletions
diff --git a/protocols/Steam/src/api/authorization.h b/protocols/Steam/src/api/authorization.h
index af0cdd4bf6..20e9f3ced9 100644
--- a/protocols/Steam/src/api/authorization.h
+++ b/protocols/Steam/src/api/authorization.h
@@ -9,7 +9,7 @@ public:
{
flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_NODUMP;
- AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
AddHeader("Referer", STEAM_WEB_URL "/mobilelogin/dologin?oauth_client_id=3638BFB1&oauth_scope=read_profile%20write_profile%20read_client%20write_client");
AddHeader("Cookie", "mobileClientVersion=1291812;forceMobile=1;mobileClient=ios");
diff --git a/protocols/Steam/src/api/friend_list.h b/protocols/Steam/src/api/friend_list.h
index c16a7d84bf..06dd886364 100644
--- a/protocols/Steam/src/api/friend_list.h
+++ b/protocols/Steam/src/api/friend_list.h
@@ -33,7 +33,7 @@ public:
SetData(data, strlen(data));
AddHeader("Cookie", cookie);
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
@@ -57,7 +57,7 @@ public:
SetData(data, strlen(data));
AddHeader("Cookie", cookie);
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
@@ -81,7 +81,7 @@ public:
SetData(data, strlen(data));
AddHeader("Cookie", cookie);
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
diff --git a/protocols/Steam/src/api/login.h b/protocols/Steam/src/api/login.h
index 331822d260..ced52b065c 100644
--- a/protocols/Steam/src/api/login.h
+++ b/protocols/Steam/src/api/login.h
@@ -11,7 +11,7 @@ public:
mir_snprintf(data, "access_token=%s&ui_mode=web", token);
SetData(data, strlen(data));
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
@@ -25,7 +25,7 @@ public:
mir_snprintf(data, "access_token=%s&umqid=%s", token, umqId);
SetData(data, strlen(data));
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
diff --git a/protocols/Steam/src/api/message.h b/protocols/Steam/src/api/message.h
index cb3a1f0590..4c3ec6c80f 100644
--- a/protocols/Steam/src/api/message.h
+++ b/protocols/Steam/src/api/message.h
@@ -15,7 +15,7 @@ public:
ptrA(mir_urlEncode(text)));
SetData(data, data.GetLength());
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
diff --git a/protocols/Steam/src/api/pending.h b/protocols/Steam/src/api/pending.h
index b07e14f087..d878d34caa 100644
--- a/protocols/Steam/src/api/pending.h
+++ b/protocols/Steam/src/api/pending.h
@@ -18,7 +18,7 @@ public:
SetData(data, strlen(data));
AddHeader("Cookie", cookie);
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
@@ -39,7 +39,7 @@ public:
SetData(data, strlen(data));
AddHeader("Cookie", cookie);
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
@@ -60,7 +60,7 @@ public:
SetData(data, strlen(data));
AddHeader("Cookie", cookie);
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
diff --git a/protocols/Steam/src/api/poll.h b/protocols/Steam/src/api/poll.h
index fec71c98e4..a196f35f1c 100644
--- a/protocols/Steam/src/api/poll.h
+++ b/protocols/Steam/src/api/poll.h
@@ -21,7 +21,7 @@ public:
SetData(data, data.GetLength());
AddHeader("Connection", "keep-alive");
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};
diff --git a/protocols/Steam/src/api/rsa_key.h b/protocols/Steam/src/api/rsa_key.h
index 5efdec2839..c9c826b18b 100644
--- a/protocols/Steam/src/api/rsa_key.h
+++ b/protocols/Steam/src/api/rsa_key.h
@@ -9,7 +9,7 @@ public:
{
flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_NODUMP;
- AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
CMStringA data;
data.AppendFormat("username=%s&donotcache=%lld", ptrA(mir_urlEncode(username)), time(NULL));
diff --git a/protocols/Steam/src/api/session.h b/protocols/Steam/src/api/session.h
index 5499d33c74..caf965803e 100644
--- a/protocols/Steam/src/api/session.h
+++ b/protocols/Steam/src/api/session.h
@@ -17,7 +17,7 @@ public:
cookie);
SetData(data, strlen(data));
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
}
};