From a0916ca14aea192194a8904d0f7f5c6722debe6c Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 8 May 2016 13:33:21 +0200 Subject: [PATCH] Changed: Useless to put a space after method name (if needed, we'll add ourself later) --HG-- branch : develop --- code/ryzom/client/src/http_client_curl.cpp | 10 +++++----- code/ryzom/common/src/game_share/http_client.cpp | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/code/ryzom/client/src/http_client_curl.cpp b/code/ryzom/client/src/http_client_curl.cpp index 92bf3e957..8ca82b9ad 100644 --- a/code/ryzom/client/src/http_client_curl.cpp +++ b/code/ryzom/client/src/http_client_curl.cpp @@ -189,7 +189,7 @@ bool CCurlHttpClient::sendRequest(const std::string& methodWB, const std::string } // Set POST params - if ((methodWB == "POST ") && (!postParams.empty())) + if ((methodWB == "POST") && (!postParams.empty())) { curl_easy_setopt(_Curl, CURLOPT_POSTFIELDS, postParams.c_str()); } @@ -235,25 +235,25 @@ void CCurlHttpClient::pushReceivedData(uint8 *buffer, uint size) // *************************************************************************** bool CCurlHttpClient::sendGet(const string &url, const string& params, bool verbose) { - return sendRequest("GET ", url + (params.empty() ? "" : ("?" + params)), string(), string(), string(), verbose); + return sendRequest("GET", url + (params.empty() ? "" : ("?" + params)), string(), string(), string(), verbose); } // *************************************************************************** bool CCurlHttpClient::sendGetWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose) { - return sendRequest("GET ", url + (params.empty() ? "" : ("?" + params)), name, value, string(), verbose); + return sendRequest("GET", url + (params.empty() ? "" : ("?" + params)), name, value, string(), verbose); } // *************************************************************************** bool CCurlHttpClient::sendPost(const string &url, const string& params, bool verbose) { - return sendRequest("POST ", url, string(), string(), params, verbose); + return sendRequest("POST", url, string(), string(), params, verbose); } // *************************************************************************** bool CCurlHttpClient::sendPostWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose) { - return sendRequest("POST ", url, name, value, params, verbose); + return sendRequest("POST", url, name, value, params, verbose); } // *************************************************************************** diff --git a/code/ryzom/common/src/game_share/http_client.cpp b/code/ryzom/common/src/game_share/http_client.cpp index 0c77fcb1a..c48087037 100644 --- a/code/ryzom/common/src/game_share/http_client.cpp +++ b/code/ryzom/common/src/game_share/http_client.cpp @@ -125,25 +125,25 @@ bool CHttpClient::sendRequest(const std::string& methodWB, const std::string &ur // *************************************************************************** bool CHttpClient::sendGet(const string &url, const string& params, bool verbose) { - return sendRequest("GET ", url + (params.empty() ? "" : ("?" + params)), string(), string(), string(), verbose); + return sendRequest("GET", url + (params.empty() ? "" : ("?" + params)), string(), string(), string(), verbose); } // *************************************************************************** bool CHttpClient::sendGetWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose) { - return sendRequest("GET ", url + (params.empty() ? "" : ("?" + params)), name, value, string(), verbose); + return sendRequest("GET", url + (params.empty() ? "" : ("?" + params)), name, value, string(), verbose); } // *************************************************************************** bool CHttpClient::sendPost(const string &url, const string& params, bool verbose) { - return sendRequest("POST ", url, string(), string(), params, verbose); + return sendRequest("POST", url, string(), string(), params, verbose); } // *************************************************************************** bool CHttpClient::sendPostWithCookie(const string &url, const string &name, const string &value, const string& params, bool verbose) { - return sendRequest("POST ", url, name, value, params, verbose); + return sendRequest("POST", url, name, value, params, verbose); } // ***************************************************************************