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

@ -1454,14 +1454,14 @@ namespace ix
spdlog::info("Writing to disk: {}", filename);
std::ofstream out(filename);
out.write((char*) &response->payload.front(), response->payload.size());
out.write((char*) &response->body.front(), response->body.size());
out.close();
}
else
{
if (response->headers["Content-Type"] != "application/octet-stream")
{
spdlog::info("payload: {}", response->payload);
spdlog::info("body: {}", response->body);
}
else
{
@ -2546,7 +2546,7 @@ namespace ix
if (response->headers["Content-Type"] != "application/octet-stream")
{
spdlog::info("payload: {}", response->payload);
spdlog::info("body: {}", response->body);
}
}
@ -2554,7 +2554,7 @@ namespace ix
{
spdlog::error("Error sending data to sentry: {}", response->statusCode);
spdlog::error("Status: {}", response->statusCode);
spdlog::error("Response: {}", response->payload);
spdlog::error("Response: {}", response->body);
}
else
{