From e4b746519325e24ca13b0cf140a1de5b21077ef6 Mon Sep 17 00:00:00 2001 From: Kieran Othen Date: Sat, 31 Mar 2018 16:44:35 +0100 Subject: [PATCH] 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. --- agent/checks/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/checks/check.go b/agent/checks/check.go index 606d1d3f6c..bc41206f08 100644 --- a/agent/checks/check.go +++ b/agent/checks/check.go @@ -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)