From 9dda9fb9032252b45ba9d736727f7e80167752e8 Mon Sep 17 00:00:00 2001 From: Mark Clarkson Date: Mon, 5 Oct 2020 16:21:41 +0100 Subject: [PATCH] fix: https healthcheck mint test (#10622) --- mint/run/core/healthcheck/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mint/run/core/healthcheck/main.go b/mint/run/core/healthcheck/main.go index d142fa67d..b69751d7b 100644 --- a/mint/run/core/healthcheck/main.go +++ b/mint/run/core/healthcheck/main.go @@ -199,9 +199,10 @@ func testPrometheusEndpoint(endpoint string) { func main() { endpoint := os.Getenv("SERVER_ENDPOINT") secure := os.Getenv("ENABLE_HTTPS") - endpoint = "http://" + endpoint if secure == "1" { endpoint = "https://" + endpoint + } else { + endpoint = "http://" + endpoint } // Output to stdout instead of the default stderr