Many more changes to get to a build for testing
This commit is contained in:
@@ -37,7 +37,8 @@ namespace Sockeye.Api.Controllers
|
||||
public async Task<IActionResult> Get()
|
||||
{
|
||||
var report = await _healthCheckService.CheckHealthAsync();
|
||||
Response.Headers.Append("Cache-Control", "no-store, no-cache");
|
||||
//Response.Headers.Append("Cache-Control", "no-store, no-cache");
|
||||
Response.Headers["Cache-Control"] = "no-store, no-cache";
|
||||
return report.Status == HealthStatus.Healthy ? Ok(report.Status.ToString()) : StatusCode(503, report.Status.ToString());
|
||||
}
|
||||
}//eoc
|
||||
|
||||
Reference in New Issue
Block a user