Skip to content

Commit

Permalink
fix exception setting content-type for healthcheck endpoint responses
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Feb 25, 2024
1 parent 8b2aa8c commit 41698bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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, "text/plain", "healthy: live");
return crow::response(crow::status::OK, "txt", "healthy: live");
}

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

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

0 comments on commit 41698bb

Please sign in to comment.