diff options
author | Ed Tanous <ed.tanous@intel.com> | 2018-03-28 03:41:04 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-06-29 21:18:14 +0300 |
commit | e0d918bc397350aa21af3dab9faa6e21748f6373 (patch) | |
tree | bdc13d1e9937c0f153e89f3ab1be050d4bf52ee7 /redfish-core/src | |
parent | 77dd8813e9a1f2baec63d959de15af39a8cd12d0 (diff) | |
download | bmcweb-e0d918bc397350aa21af3dab9faa6e21748f6373.tar.xz |
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
Diffstat (limited to 'redfish-core/src')
-rw-r--r-- | redfish-core/src/utils/json_utils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 <error_messages.hpp> -#include <crow/http_codes.h> 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<int>(HttpRespCode::BAD_REQUEST); + res.result(boost::beast::http::status::bad_request); res.end(); return false; |