Health check fixes - fix path & add credentials to header
diff --git a/api/api.go b/api/api.go index 1c7caea..fb03f90 100644 --- a/api/api.go +++ b/api/api.go
@@ -134,8 +134,11 @@ utils.LogFlow("Health Check", "Start") defer utils.LogFlow("Health Check", "End") + httpReq, err := http.NewRequest("GET", conn.getURL("HealthCheck"), nil) + httpReq.Header.Set("Authorization", conn.credentials) + // See if we get a response. - resp, err := conn.client.Get(conn.getURL("/v3/HealthCheck")) + resp, err := conn.client.Do(httpReq) if err != nil { return fmt.Errorf("Health check failed to connect to server: %v", err) } else if resp.StatusCode != 200 {