diff options
| author | Ed Tanous <ed.tanous@intel.com> | 2018-03-27 17:41:04 -0700 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2018-06-29 11:18:14 -0700 |
| commit | e0d918bc397350aa21af3dab9faa6e21748f6373 (patch) | |
| tree | bdc13d1e9937c0f153e89f3ab1be050d4bf52ee7 /redfish-core/src/utils | |
| parent | 77dd8813e9a1f2baec63d959de15af39a8cd12d0 (diff) | |
| download | bmcweb-e0d918bc397350aa21af3dab9faa6e21748f6373.tar.gz bmcweb-e0d918bc397350aa21af3dab9faa6e21748f6373.zip | |
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/utils')
| -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 b4bdba6..fea4d38 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; |

