mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
retrieval: comment out accept header again
This commit is contained in:
parent
0f3110487d
commit
e829dbe2be
|
@ -373,7 +373,7 @@ func (s *targetScraper) scrape(ctx context.Context, w io.Writer) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// Disable accept header to always negotiate for text format.
|
// 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.Add("Accept-Encoding", "gzip")
|
||||||
req.Header.Set("User-Agent", userAgentHeader)
|
req.Header.Set("User-Agent", userAgentHeader)
|
||||||
req.Header.Set("X-Prometheus-Scrape-Timeout-Seconds", fmt.Sprintf("%f", s.timeout.Seconds()))
|
req.Header.Set("X-Prometheus-Scrape-Timeout-Seconds", fmt.Sprintf("%f", s.timeout.Seconds()))
|
||||||
|
|
Loading…
Reference in a new issue