summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-11-25 20:48:44 +0000
committerRobert Pösel <robyer@seznam.cz>2015-11-25 20:48:44 +0000
commite212cc9bf5a59c6ddb3a2aae11bb4e6a0618a21c (patch)
tree0b300b92b06d12ff66fb2fdefb78e0ecf326b0db
parentf155980e50b5670593eb0857a061d16f708a362f (diff)
Facebook: Attempt to fix problem with login for some people
git-svn-id: http://svn.miranda-ng.org/main/trunk@15779 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/FacebookRM/src/communication.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index b9d7a9d980..34fcaa7735 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -39,8 +39,10 @@ http::response facebook_client::flap(RequestType request_type, std::string *post
// Prepare the request
NETLIBHTTPREQUEST nlhr = { sizeof(NETLIBHTTPREQUEST) };
+ std::string server = choose_server(request_type);
+
// Set request URL
- std::string url = HTTP_PROTO_SECURE + choose_server(request_type) + choose_action(request_type, get_data);
+ std::string url = HTTP_PROTO_SECURE + server + choose_action(request_type, get_data);
if (!parent->m_locale.empty())
url += "&locale=" + parent->m_locale;
@@ -72,6 +74,10 @@ http::response facebook_client::flap(RequestType request_type, std::string *post
// Set flags
nlhr.flags = NLHRF_HTTP11 | NLHRF_SSL;
+ if (server == FACEBOOK_SERVER_MOBILE) {
+ nlhr.flags |= NLHRF_REDIRECT;
+ }
+
#ifdef _DEBUG
nlhr.flags |= NLHRF_DUMPASTEXT;
#else