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
parent 99c17b4319
commit b012366c33
1 changed files with 1 additions and 1 deletions

View File

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