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

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()))