From e0a6cb281e8abd4b13fb8386ef15f808f41c1599 Mon Sep 17 00:00:00 2001 From: Bjoern Rabenstein Date: Wed, 3 Sep 2014 16:46:29 +0200 Subject: [PATCH] Fix the accept header. A '/' is a separator and has to be in a quoted string. Change-Id: If7a3a847f84f8f709074d05dc98b5b21e954030c --- retrieval/target.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrieval/target.go b/retrieval/target.go index f0045963d..2d5d4e282 100644 --- a/retrieval/target.go +++ b/retrieval/target.go @@ -227,7 +227,7 @@ func (t *target) StopScraper() { t.stopScraper <- true } -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,application/json;schema="prometheus/telemetry";version=0.0.2;q=0.2,*/*;q=0.1` func (t *target) scrape(ingester extraction.Ingester) (err error) { timestamp := clientmodel.Now()