mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
Adds default set of accept headers for HTTP checks.
This commit is contained in:
parent
525cb0abc1
commit
4cb16808f4
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user