diff options
author | George Hazan <ghazan@miranda.im> | 2019-06-26 23:07:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-06-26 23:07:24 +0300 |
commit | 718e96a95c5596fa6c7e21984cf8bdfb6d528e60 (patch) | |
tree | e36882173cfed94a825ae1f97b9916022bd5b98e /protocols/Facebook/src/http.cpp | |
parent | 84b095e0faa33bd6af98f89dabf6b4e54312f113 (diff) |
MQTT: proper MQTT payload preparation
Diffstat (limited to 'protocols/Facebook/src/http.cpp')
-rw-r--r-- | protocols/Facebook/src/http.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Facebook/src/http.cpp b/protocols/Facebook/src/http.cpp index aa2d4a5c5e..88a73c4006 100644 --- a/protocols/Facebook/src/http.cpp +++ b/protocols/Facebook/src/http.cpp @@ -107,6 +107,9 @@ AsyncHttpRequest* FacebookProto::CreateRequest(const char *szName, const char *s szLocale = "en"; pReq << CHAR_PARAM("locale", szLocale); + if (!m_szAuthToken.IsEmpty()) + pReq->AddHeader("Authorization", "OAuth " + m_szAuthToken); + pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"); unsigned int id; |