in main/health.go [134:148]
func constructAddress(protocol string, port int, requestPath string) string {
portString := ""
if protocol == "http" && port != 0 && port != 80 {
portString = ":" + strconv.Itoa(port)
} else if protocol == "https" && port != 0 && port != 443 {
portString = ":" + strconv.Itoa(port)
}
u := url.URL{
Scheme: protocol,
Host: "localhost" + portString,
Path: requestPath,
}
return u.String()
}