diff --git a/src/utils/https_client.cc b/src/utils/https_client.cc index 426b5cf17e..1ba5fd864a 100644 --- a/src/utils/https_client.cc +++ b/src/utils/https_client.cc @@ -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) { diff --git a/src/utils/https_client.h b/src/utils/https_client.h index fe3a68b945..2f38218fc1 100644 --- a/src/utils/https_client.h +++ b/src/utils/https_client.h @@ -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: