summaryrefslogtreecommitdiff
path: root/redfish-core/src/utils
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2023-02-15 02:05:48 +0300
committerEd Tanous <ed@tanous.net>2023-03-11 03:50:32 +0300
commit33c6b58026e5dd3bc600d152a07b95f863bfa1a7 (patch)
tree17d8803445b5310f48eba160c2fc488a70fcd215 /redfish-core/src/utils
parent98fe740b59a96fd4d4232655f820da168129f090 (diff)
downloadbmcweb-33c6b58026e5dd3bc600d152a07b95f863bfa1a7.tar.xz
Remove body member from Request
Per cpp core guidelines, these should be methods. Tested: on last patchset of the series. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ib16479db9d2b68da68e7ad6e825c7e205c64f1de
Diffstat (limited to 'redfish-core/src/utils')
-rw-r--r--redfish-core/src/utils/json_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/src/utils/json_utils.cpp b/redfish-core/src/utils/json_utils.cpp
index 89723ccd12..5daf95b058 100644
--- a/redfish-core/src/utils/json_utils.cpp
+++ b/redfish-core/src/utils/json_utils.cpp
@@ -37,7 +37,7 @@ bool processJsonFromRequest(crow::Response& res, const crow::Request& req,
messages::unrecognizedRequestBody(res);
return false;
}
- reqJson = nlohmann::json::parse(req.body, nullptr, false);
+ reqJson = nlohmann::json::parse(req.body(), nullptr, false);
if (reqJson.is_discarded())
{