Skip to content

Commit

Permalink
Issue prometheus#13268: fix quality value in accept header
Browse files Browse the repository at this point in the history
Signed-off-by: Kumar Kalpadiptya Roy <kalpadiptya.roy@outlook.com>
  • Loading branch information
kalpadiptyaroy committed Dec 21, 2023
1 parent 99c17b4 commit b012366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrape/scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,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, ",")
}

Expand Down

0 comments on commit b012366

Please sign in to comment.