mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-06 04:46:13 +02:00
Issue #13268: fix quality value in accept header
Signed-off-by: Kumar Kalpadiptya Roy <kalpadiptya.roy@outlook.com>
This commit is contained in:
parent
683a46cc99
commit
e61e5938d6
@ -672,7 +672,7 @@ func acceptHeader(sps []config.ScrapeProtocol) string {
|
||||
weight--
|
||||
}
|
||||
// Default match anything.
|
||||
vals = append(vals, fmt.Sprintf("*/*;q=%d", weight))
|
||||
vals = append(vals, fmt.Sprintf("*/*;q=0.%d", weight))
|
||||
return strings.Join(vals, ",")
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user