summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-05 21:16:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-05 21:16:02 +0300
commit052f16885700688f8f72be46d1d21e3541ae85df (patch)
tree66075e36faaea9760b568b2c85595463c7c21286
parent38a15e46bee17fcce51f4d323f6a4759019f2920 (diff)
Facebook: fix for setting correct User-Agent for all HTTP requests
-rw-r--r--protocols/Facebook/src/http.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Facebook/src/http.cpp b/protocols/Facebook/src/http.cpp
index cc892ffb5f..d6950c4099 100644
--- a/protocols/Facebook/src/http.cpp
+++ b/protocols/Facebook/src/http.cpp
@@ -117,6 +117,7 @@ AsyncHttpRequest* FacebookProto::CreateRequest(const char *szUrl, const char *sz
pReq->AddHeader("Authorization", "OAuth " + m_szAuthToken);
}
+ pReq->AddHeader("User-Agent", FB_API_AGENT);
pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
return pReq;
}