Merge pull request #2003 from mattbostock/remove_json_from_accept

Scrape: Remove JSON from Accept request header
This commit is contained in:
Julius Volz 2016-09-17 14:41:27 +02:00 committed by GitHub
commit 06199268b5
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ type targetScraper struct {
client *http.Client client *http.Client
} }
const acceptHeader = `application/vnd.google.protobuf;proto=io.prometheus.client.MetricFamily;encoding=delimited;q=0.7,text/plain;version=0.0.4;q=0.3,application/json;schema="prometheus/telemetry";version=0.0.2;q=0.2,*/*;q=0.1` const acceptHeader = `application/vnd.google.protobuf;proto=io.prometheus.client.MetricFamily;encoding=delimited;q=0.7,text/plain;version=0.0.4;q=0.3,*/*;q=0.1`
func (s *targetScraper) scrape(ctx context.Context, ts time.Time) (model.Samples, error) { func (s *targetScraper) scrape(ctx context.Context, ts time.Time) (model.Samples, error) {
req, err := http.NewRequest("GET", s.URL().String(), nil) req, err := http.NewRequest("GET", s.URL().String(), nil)