From 5aec781d39cdb62dcea12b9d70925ac28776b58c Mon Sep 17 00:00:00 2001 From: Mesar ali Date: Tue, 2 Nov 2021 12:35:29 +0530 Subject: [PATCH 1/2] Confusing variable name in setRequestBody method --- src/utils/https_client.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { From f82b98c04d17befba57cef9e0f93ebf022fdded4 Mon Sep 17 00:00:00 2001 From: Mesar ali Date: Thu, 30 Dec 2021 08:55:51 +0530 Subject: [PATCH 2/2] Confusing variable name in setRequestBody method --- src/utils/https_client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: