fix: https healthcheck mint test (#10622)

This commit is contained in:
Mark Clarkson 2020-10-05 16:21:41 +01:00 committed by GitHub
parent f1418a50f0
commit 9dda9fb903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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