Issue #13268: fix quality value in accept header

Signed-off-by: Kumar Kalpadiptya Roy <kalpadiptya.roy@outlook.com>
This commit is contained in:
Kumar Kalpadiptya Roy 2023-12-20 00:28:59 +05:30 committed by bwplotka
parent 683a46cc99
commit e61e5938d6

View file

@ -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, ",")
}