summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 28e558c30e..aae53a48b6 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -42,7 +42,7 @@ http::response facebook_client::sendRequest(HttpRequest *request)
}
// Check and append user defined locale if request doesn't have it forced already
- if (!parent->m_locale.empty() && strstr(request->szUrl, "&locale=") == nullptr)
+ if (!parent->m_locale.empty() && request->m_szUrl.Find("&locale=") == -1)
request << CHAR_PARAM("locale", parent->m_locale.c_str());
request->AddHeader("Accept-Language", "en,en-US;q=0.9");
@@ -76,7 +76,7 @@ http::response facebook_client::sendRequest(HttpRequest *request)
break;
}
- parent->debugLogA("@@@ Sending request to '%s'", request->szUrl);
+ parent->debugLogA("@@@ Sending request to '%s'", request->m_szUrl.c_str());
// Send the request
NETLIBHTTPREQUEST *pnlhr = request->Send(handle_);