Skip to content

Commit 2de14cb

Browse files
authored
Merge pull request #2635 from Mesar-Ali/patch-1
Adjust confusing variable name in setRequestBody method
2 parents 52958fa + f82b98c commit 2de14cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/utils/https_client.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ void HttpsClient::setKey(const std::string& key) {
5050
m_key = "ModSec-key: " + key;
5151
}
5252

53-
void HttpsClient::setRequestBody(const std::string& requestType) {
54-
m_requestBody = requestType;
53+
void HttpsClient::setRequestBody(const std::string& requestBody) {
54+
m_requestBody = requestBody;
5555
}
5656

5757
void HttpsClient::setRequestType(const std::string& requestType) {

src/utils/https_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class HttpsClient {
4747
size_t handle_impl(char * data, size_t size, size_t nmemb);
4848
void setKey(const std::string& key);
4949
void setRequestType(const std::string& requestType);
50-
void setRequestBody(const std::string& requestType);
50+
void setRequestBody(const std::string& requestBody);
5151

5252
std::string error;
5353
private:

0 commit comments

Comments
 (0)