Skip to content

Commit

Permalink
Fix boost warn: use boost::system instead boost::json error code (#4799)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo authored Oct 8, 2024
1 parent 83ce548 commit e3b6961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ beast::http::message_generator tfs::http::handle_request(const beast::http::requ
std::string_view ip)
{
auto&& [status, responseBody] = [&req, ip]() {
json::error_code ec;
boost::system::error_code ec;
auto requestBody = json::parse(req.body(), ec, &mr);
if (ec || !requestBody.is_object()) {
return make_error_response({.code = 2, .message = "Invalid request body."});
Expand Down

0 comments on commit e3b6961

Please sign in to comment.