Rename HttpResponse's payload to body (#245)

* rename payload to body

* Fixed ws cmd line tool to use the renamed body

Co-authored-by: Jay <jasoncarr@Jasons-MacBook-Pro.local>
This commit is contained in:
carr-7
2020-09-13 03:01:37 +01:00
committed by GitHub
parent 128bc0afa9
commit 39c84c7d51
6 changed files with 13 additions and 13 deletions

View File

@ -103,11 +103,11 @@ TEST_CASE("http server", "[httpd]")
std::cerr << "Status: " << response->statusCode << std::endl;
std::cerr << "Error message: " << response->errorMsg << std::endl;
std::cerr << "Payload: " << response->payload << std::endl;
std::cerr << "Body: " << response->body << std::endl;
REQUIRE(response->errorCode == HttpErrorCode::Ok);
REQUIRE(response->statusCode == 200);
REQUIRE(response->payload == args->body);
REQUIRE(response->body == args->body);
server.stop();
}