Skip to content

Commit 4fa51ea

Browse files
authored
Merge pull request #12 from coding-cpp/fix/11
statusCode instead of status
2 parents 182596a + 1bd9232 commit 4fa51ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/mochios/messages/response.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Response : public Message {
1212
Response();
1313
~Response();
1414

15-
int status;
15+
int statusCode;
1616
std::string statusText;
1717

1818
void print() override;

src/helpers/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ mochios::helpers::client::send(mochios::messages::Request &request,
105105
std::string line;
106106
std::getline(oss, line);
107107
std::vector<std::string> parts = brewtils::string::split(line, " ");
108-
res.status = std::stoi(parts[1]);
108+
res.statusCode = std::stoi(parts[1]);
109109
if (parts.size() > 2) {
110110
res.statusText = parts[2];
111111
}

src/messages/response.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mochios::messages::Response::~Response() { return; }
66

77
void mochios::messages::Response::print() {
88
logger::debug("Response:");
9-
logger::debug(" status: " + std::to_string(this->status));
9+
logger::debug(" statusCode: " + std::to_string(this->statusCode));
1010
logger::debug(" statusText: " + this->statusText);
1111

1212
logger::debug(" headers:");

0 commit comments

Comments
 (0)