Merge pull request #2635 from Mesar-Ali/patch-1

Adjust confusing variable name in setRequestBody method
This commit is contained in:
martinhsv 2021-12-30 11:29:37 -05:00 committed by GitHub
commit 2de14cb000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -50,8 +50,8 @@ void HttpsClient::setKey(const std::string& key) {
m_key = "ModSec-key: " + key; m_key = "ModSec-key: " + key;
} }
void HttpsClient::setRequestBody(const std::string& requestType) { void HttpsClient::setRequestBody(const std::string& requestBody) {
m_requestBody = requestType; m_requestBody = requestBody;
} }
void HttpsClient::setRequestType(const std::string& requestType) { void HttpsClient::setRequestType(const std::string& requestType) {

View File

@ -47,7 +47,7 @@ class HttpsClient {
size_t handle_impl(char * data, size_t size, size_t nmemb); size_t handle_impl(char * data, size_t size, size_t nmemb);
void setKey(const std::string& key); void setKey(const std::string& key);
void setRequestType(const std::string& requestType); void setRequestType(const std::string& requestType);
void setRequestBody(const std::string& requestType); void setRequestBody(const std::string& requestBody);
std::string error; std::string error;
private: private: