mirror of https://github.com/hashicorp/consul
commit
39c17084b6
|
@ -412,7 +412,7 @@ func (c *CheckHTTP) check() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format the response body
|
// Format the response body
|
||||||
result := fmt.Sprintf("HTTP GET %s: %s Output: %s", c.HTTP, resp.Status, output.String())
|
result := fmt.Sprintf("HTTP %s %s: %s Output: %s", method, c.HTTP, resp.Status, output.String())
|
||||||
|
|
||||||
if resp.StatusCode >= 200 && resp.StatusCode <= 299 {
|
if resp.StatusCode >= 200 && resp.StatusCode <= 299 {
|
||||||
// PASSING (2xx)
|
// PASSING (2xx)
|
||||||
|
|
Loading…
Reference in New Issue