From e0d918bc397350aa21af3dab9faa6e21748f6373 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Tue, 27 Mar 2018 17:41:04 -0700 Subject: Boost beast This commit is the beginings of attempting to transition away from crow, and toward boost::beast. Unit tests are passing, and implementation appears to be slightly faster than crow. Change-Id: Ic8d946dc7a04f514c67b1098f181eee1ced69171 --- redfish-core/src/utils/json_utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'redfish-core/src/utils') diff --git a/redfish-core/src/utils/json_utils.cpp b/redfish-core/src/utils/json_utils.cpp index b4bdba6d35..fea4d38964 100644 --- a/redfish-core/src/utils/json_utils.cpp +++ b/redfish-core/src/utils/json_utils.cpp @@ -15,7 +15,6 @@ */ #include "utils/json_utils.hpp" #include -#include namespace redfish { @@ -440,7 +439,7 @@ bool processJsonFromRequest(crow::response& res, const crow::request& req, if (reqJson.is_discarded()) { messages::addMessageToErrorJson(res.json_value, messages::malformedJSON()); - res.code = static_cast(HttpRespCode::BAD_REQUEST); + res.result(boost::beast::http::status::bad_request); res.end(); return false; -- cgit v1.2.3