From 30dba02fa3cfbc554262526c6a24548dd97a90b5 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 9 Mar 2016 21:11:20 -0800 Subject: [PATCH] Adds default set of accept headers for HTTP checks. --- command/agent/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/check.go b/command/agent/check.go index 7255357be..87de96810 100644 --- a/command/agent/check.go +++ b/command/agent/check.go @@ -391,7 +391,7 @@ func (c *CheckHTTP) check() { } req.Header.Set("User-Agent", HttpUserAgent) - req.Header.Set("Accept", "*/*") + req.Header.Set("Accept", "text/plain, text/*, */*") resp, err := c.httpClient.Do(req) if err != nil {