Adds default set of accept headers for HTTP checks.

pull/1819/head
James Phillips 2016-03-09 21:11:20 -08:00
parent 525cb0abc1
commit 4cb16808f4
1 changed files with 1 additions and 1 deletions

View File

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