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
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;
}
void HttpsClient::setRequestBody(const std::string& requestType) {
m_requestBody = requestType;
void HttpsClient::setRequestBody(const std::string& requestBody) {
m_requestBody = requestBody;
}
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);
void setKey(const std::string& key);
void setRequestType(const std::string& requestType);
void setRequestBody(const std::string& requestType);
void setRequestBody(const std::string& requestBody);
std::string error;
private: