Merge pull request #1819 from hashicorp/f-check-accept

Adds default set of accept headers for HTTP checks.
This commit is contained in:
James Phillips 2016-03-09 21:12:25 -08:00
commit dda84c0f58

View file

@ -413,6 +413,7 @@ func (c *CheckHTTP) check() {
}
req.Header.Set("User-Agent", HttpUserAgent)
req.Header.Set("Accept", "text/plain, text/*, */*")
resp, err := c.httpClient.Do(req)
if err != nil {