Merge pull request #1819 from hashicorp/f-check-accept
Adds default set of accept headers for HTTP checks.
This commit is contained in:
commit
dda84c0f58
|
@ -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 a new issue