Browse Source

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

Adds default set of accept headers for HTTP checks.
pull/1629/head
James Phillips 9 years ago
parent
commit
6e2c106006
  1. 1
      command/agent/check.go

1
command/agent/check.go

@ -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 {

Loading…
Cancel
Save