mirror of https://github.com/hashicorp/consul
Merge pull request #1819 from hashicorp/f-check-accept
Adds default set of accept headers for HTTP checks.pull/1629/head
commit
6e2c106006
|
@ -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…
Reference in New Issue