package clair

import (
	"fmt"
	"net/http"
	"os"
	"strconv"
	"strings"
)

func IsHealthy() bool {
	Config()
	healthUri := strings.Replace(uri, "6060", strconv.Itoa(healthPort), 1)
	response, err := http.Get(healthUri + "/health")

	if err != nil {

		fmt.Fprintf(os.Stderr, "requesting Clair health: %v", err)
		return false
	}
	defer response.Body.Close()

	if response.StatusCode != http.StatusOK {
		return false
	}

	return true
}

package clair

import (
	"fmt"
	"net/http"
	"os"
	"strconv"
	"strings"
)

func IsHealthy() bool {
	Config()
	healthURI := strings.Replace(uri, "6060/v1", strconv.Itoa(healthPort), 1) + "/health"
	response, err := http.Get(healthURI)
	if err != nil {

		fmt.Fprintf(os.Stderr, "requesting Clair health: %v", err)
		return false
	}
	defer response.Body.Close()

	if response.StatusCode != http.StatusOK {
		return false
	}

	return true
}

Fix Healthcheck, by removing v1 in url
Fix Healthcheck, by removing v1 in url

closes #52
