retrieval: comment out accept header again

This commit is contained in:
Fabian Reinartz 2017-04-27 11:46:08 +02:00
parent 0f3110487d
commit e829dbe2be
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ func (s *targetScraper) scrape(ctx context.Context, w io.Writer) error {
return err
}
// Disable accept header to always negotiate for text format.
req.Header.Add("Accept", acceptHeader)
// req.Header.Add("Accept", acceptHeader)
req.Header.Add("Accept-Encoding", "gzip")
req.Header.Set("User-Agent", userAgentHeader)
req.Header.Set("X-Prometheus-Scrape-Timeout-Seconds", fmt.Sprintf("%f", s.timeout.Seconds()))