mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
Merge pull request #13313 from kalpadiptyaroy/fix-quality-value-accept-header
bug: Fix quality value in accept header
This commit is contained in:
commit
0763ec841b
|
@ -675,7 +675,7 @@ func acceptHeader(sps []config.ScrapeProtocol) string {
|
||||||
weight--
|
weight--
|
||||||
}
|
}
|
||||||
// Default match anything.
|
// Default match anything.
|
||||||
vals = append(vals, fmt.Sprintf("*/*;q=%d", weight))
|
vals = append(vals, fmt.Sprintf("*/*;q=0.%d", weight))
|
||||||
return strings.Join(vals, ",")
|
return strings.Join(vals, ",")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue