Skip to content

Commit

Permalink
add context type = "text/plain" to health check endpoint responses
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Feb 25, 2024
1 parent 97837c7 commit 8b2aa8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OdbDesignServer/Controllers/HealthCheckController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ namespace Odb::App::Server

crow::response HealthCheckController::health_check_live(const crow::request& req)
{
return crow::response(crow::status::OK, "healthy: live");
return crow::response(crow::status::OK, "text/plain", "healthy: live");
}

crow::response HealthCheckController::health_check_ready(const crow::request& req)
{
return crow::response(crow::status::OK, "healthy: ready");
return crow::response(crow::status::OK, "text/plain", "healthy: ready");
}

crow::response HealthCheckController::health_check_started(const crow::request& req)
{
return crow::response(crow::status::OK, "healthy: started");
return crow::response(crow::status::OK, "text/plain", "healthy: started");
}
}

0 comments on commit 8b2aa8c

Please sign in to comment.