mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
Update check.go
Cosmetic fix to the agent's HTTP check function which always formats the result as "HTTP GET ...", ignoring any non-GET supplied HTTP method such as POST, PUT, etc.
This commit is contained in:
parent
c95bc277cb
commit
e4b7465193
@ -412,7 +412,7 @@ func (c *CheckHTTP) check() {
|
||||
}
|
||||
|
||||
// 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 {
|
||||
// PASSING (2xx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user